@avalabs/glacier-sdk 3.1.0-canary.9fc81c6.0 → 3.1.0-canary.a06f84d.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2477 -470
  3. package/esm/generated/Glacier.d.ts +8 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  6. package/esm/generated/core/ApiResult.d.ts +1 -1
  7. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  8. package/esm/generated/core/OpenAPI.d.ts +2 -1
  9. package/esm/generated/models/AccessListData.d.ts +12 -0
  10. package/esm/generated/models/AccessRequest.d.ts +12 -0
  11. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  12. package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
  13. package/esm/generated/models/AddressesChangeRequest.d.ts +2 -2
  14. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  15. package/esm/generated/models/ApiFeature.d.ts +7 -0
  16. package/esm/generated/models/ApiFeature.js +1 -0
  17. package/esm/generated/models/AssetAmount.d.ts +1 -1
  18. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  19. package/esm/generated/models/BadGateway.d.ts +16 -0
  20. package/esm/generated/models/BadRequest.d.ts +16 -0
  21. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  22. package/esm/generated/models/Blockchain.d.ts +5 -1
  23. package/esm/generated/models/BlockchainId.d.ts +2 -0
  24. package/esm/generated/models/BlockchainId.js +1 -1
  25. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  26. package/esm/generated/models/BlockchainIds.js +1 -1
  27. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  28. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  29. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  30. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  31. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  32. package/esm/generated/models/ChainInfo.d.ts +2 -2
  33. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  34. package/esm/generated/models/CommonBalanceType.js +1 -0
  35. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  36. package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
  37. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  38. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  39. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +5 -5
  40. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
  41. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  42. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  43. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  44. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  45. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  46. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  47. package/esm/generated/models/ERCToken.d.ts +24 -0
  48. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  49. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  50. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  51. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  52. package/esm/generated/models/EVMInput.d.ts +1 -1
  53. package/esm/generated/models/EVMOutput.d.ts +1 -1
  54. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  55. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  56. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  57. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  58. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  59. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  60. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  61. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  62. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  63. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  64. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  65. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  66. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  67. package/esm/generated/models/EventType.d.ts +3 -1
  68. package/esm/generated/models/EventType.js +1 -1
  69. package/esm/generated/models/EvmBlock.d.ts +5 -1
  70. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  71. package/esm/generated/models/Forbidden.d.ts +16 -0
  72. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  73. package/esm/generated/models/Geolocation.d.ts +24 -0
  74. package/esm/generated/models/GetChainResponse.d.ts +2 -2
  75. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  76. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  77. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  78. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  79. package/esm/generated/models/GetTransactionResponse.d.ts +7 -2
  80. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  81. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  82. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  83. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  84. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  85. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  86. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  87. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  88. package/esm/generated/models/IcmRewardDetails.js +1 -0
  89. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  90. package/esm/generated/models/ImageAsset.d.ts +1 -1
  91. package/esm/generated/models/InternalServerError.d.ts +16 -0
  92. package/esm/generated/models/InternalTransaction.d.ts +16 -17
  93. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  94. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  95. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  96. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  97. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  98. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  99. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  100. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  101. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  102. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  103. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  104. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  105. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  106. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  107. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  108. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  109. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  110. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  111. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  112. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  113. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  114. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  115. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  116. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  117. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  118. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  120. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  121. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  122. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  123. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  124. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  125. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  126. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +1 -1
  127. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  128. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  129. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  130. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  131. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  132. package/esm/generated/models/ListWebhooksResponse.d.ts +4 -3
  133. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  134. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  135. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  136. package/esm/generated/models/Log.d.ts +40 -0
  137. package/esm/generated/models/LogsFormat.d.ts +60 -0
  138. package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
  139. package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
  140. package/esm/generated/models/Method.d.ts +1 -1
  141. package/esm/generated/models/Metric.d.ts +14 -0
  142. package/esm/generated/models/Money.d.ts +1 -1
  143. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  144. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  145. package/esm/generated/models/Network.d.ts +2 -1
  146. package/esm/generated/models/Network.js +1 -1
  147. package/esm/generated/models/NetworkToken.d.ts +1 -1
  148. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  149. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  150. package/esm/generated/models/NextPageToken.d.ts +1 -1
  151. package/esm/generated/models/NotFound.d.ts +16 -0
  152. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  153. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  154. package/esm/generated/models/PChainBalance.d.ts +1 -1
  155. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  156. package/esm/generated/models/PChainTransaction.d.ts +34 -8
  157. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  158. package/esm/generated/models/PChainTransactionType.js +1 -1
  159. package/esm/generated/models/PChainUtxo.d.ts +28 -1
  160. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  161. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  162. package/esm/generated/models/PendingIcmMessage.js +1 -0
  163. package/esm/generated/models/PendingReward.d.ts +1 -1
  164. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  165. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  166. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  167. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  168. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  169. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  170. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  171. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  172. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  173. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  174. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  175. package/esm/generated/models/PricingProviders.d.ts +1 -1
  176. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  177. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  178. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
  179. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  180. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  181. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  182. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  183. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  184. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  185. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  186. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  187. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  188. package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
  189. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  190. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  191. package/esm/generated/models/RequestType.d.ts +9 -0
  192. package/esm/generated/models/RequestType.js +1 -0
  193. package/esm/generated/models/ResourceLink.d.ts +1 -1
  194. package/esm/generated/models/Rewards.d.ts +1 -1
  195. package/esm/generated/models/RichAddress.d.ts +1 -1
  196. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  197. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  198. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  199. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  200. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  201. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  202. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  203. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  204. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  205. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  206. package/esm/generated/models/Subnet.d.ts +16 -3
  207. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  208. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  209. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  210. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  211. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  212. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  213. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  214. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  215. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  216. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  217. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  218. package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
  219. package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
  220. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  221. package/esm/generated/models/Transaction.d.ts +121 -0
  222. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  223. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  224. package/esm/generated/models/TransactionDirectionType.js +1 -0
  225. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  226. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  227. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  228. package/esm/generated/models/Unauthorized.d.ts +16 -0
  229. package/esm/generated/models/UnknownContract.d.ts +1 -1
  230. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  231. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  232. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  233. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
  234. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
  235. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
  236. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  237. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  238. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  239. package/esm/generated/models/Utxo.d.ts +1 -1
  240. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  241. package/esm/generated/models/UtxoType.d.ts +3 -0
  242. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  243. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  244. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  245. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  246. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  247. package/esm/generated/models/XChainBalances.d.ts +1 -1
  248. package/esm/generated/models/XChainId.d.ts +1 -0
  249. package/esm/generated/models/XChainId.js +1 -1
  250. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  251. package/esm/generated/models/XChainVertex.d.ts +1 -1
  252. package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
  253. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  254. package/esm/generated/services/EvmBalancesService.d.ts +14 -14
  255. package/esm/generated/services/EvmBalancesService.js +1 -1
  256. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  257. package/esm/generated/services/EvmBlocksService.js +1 -1
  258. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  259. package/esm/generated/services/EvmChainsService.js +1 -1
  260. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  261. package/esm/generated/services/EvmContractsService.js +1 -1
  262. package/esm/generated/services/EvmTransactionsService.d.ts +59 -26
  263. package/esm/generated/services/EvmTransactionsService.js +1 -1
  264. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  265. package/esm/generated/services/HealthCheckService.js +1 -1
  266. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  267. package/esm/generated/services/InterchainMessagingService.js +1 -0
  268. package/esm/generated/services/NfTsService.d.ts +6 -6
  269. package/esm/generated/services/NfTsService.js +1 -1
  270. package/esm/generated/services/NotificationsService.d.ts +51 -0
  271. package/esm/generated/services/NotificationsService.js +1 -0
  272. package/esm/generated/services/OperationsService.d.ts +2 -2
  273. package/esm/generated/services/OperationsService.js +1 -1
  274. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  275. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  276. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  277. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  278. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  279. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  280. package/esm/generated/services/PrimaryNetworkService.d.ts +71 -20
  281. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  282. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  283. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  284. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  285. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  286. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  287. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  288. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  289. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  290. package/esm/generated/services/TeleporterService.d.ts +44 -10
  291. package/esm/generated/services/TeleporterService.js +1 -1
  292. package/esm/generated/services/WebhooksService.d.ts +30 -28
  293. package/esm/generated/services/WebhooksService.js +1 -1
  294. package/esm/index.d.ts +77 -11
  295. package/esm/index.js +1 -1
  296. package/package.json +13 -4
  297. package/dist/index.js +0 -1
  298. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
  299. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  300. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  301. package/esm/generated/models/GlacierApiFeature.js +0 -1
  302. package/esm/generated/models/NetworkType.d.ts +0 -6
  303. package/esm/generated/models/NetworkType.js +0 -1
  304. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  305. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  306. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  307. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  308. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  309. package/esm/generated/services/RpcService.d.ts +0 -25
  310. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,571 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type LogsFormatMetadata = {
58
+ /**
59
+ * The IP address of the client that made the request.
60
+ */
61
+ ipAddress: string;
62
+ /**
63
+ * The host for the request made by the client.
64
+ */
65
+ host: string;
66
+ /**
67
+ * The user agent of the client that made the request.
68
+ */
69
+ userAgent: string;
70
+ };
71
+
72
+ /**
73
+ * The type of request made by the client.
74
+ */
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
78
+ }
79
+
80
+ type LogsFormat = {
81
+ /**
82
+ * The organization id of the request.
83
+ */
84
+ orgId: string;
85
+ /**
86
+ * The unique log id of the request.
87
+ */
88
+ logId: string;
89
+ /**
90
+ * The timestamp of the request.
91
+ */
92
+ eventTimestamp: number;
93
+ /**
94
+ * The apiKey used to make the request.
95
+ */
96
+ apiKeyId: string;
97
+ /**
98
+ * The alias of the apiKey used to make the request.
99
+ */
100
+ apiKeyAlias: string;
101
+ /**
102
+ * The region of the host for the request made by the client.
103
+ */
104
+ hostRegion: string;
105
+ requestType: RequestType;
106
+ /**
107
+ * The path of the request made by the client.
108
+ */
109
+ requestPath: string;
110
+ /**
111
+ * The number of API credits consumed by the request.
112
+ */
113
+ apiCreditsConsumed: number;
114
+ /**
115
+ * The duration of the request in milliseconds.
116
+ */
117
+ requestDurationMsecs: number;
118
+ /**
119
+ * The response code of the request.
120
+ */
121
+ responseCode: number;
122
+ /**
123
+ * The chain id of the request.
124
+ */
125
+ chainId?: string;
126
+ /**
127
+ * The rpc method of the request.
128
+ */
129
+ rpcMethod?: string;
130
+ /**
131
+ * The metadata of the request.
132
+ */
133
+ metadata: LogsFormatMetadata;
134
+ };
135
+
136
+ type LogsResponseDTO = {
137
+ /**
138
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
139
+ */
140
+ nextPageToken?: string;
141
+ /**
142
+ * The organization id of the request.
143
+ */
144
+ orgId: string;
145
+ /**
146
+ * An array of logs representing the requests made by clients.
147
+ */
148
+ logs: Array<LogsFormat>;
149
+ };
150
+
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet"
155
+ }
156
+
157
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
158
+ RPC_METHOD = "rpcMethod",
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
167
+ HOURLY = "hourly",
168
+ DAILY = "daily",
169
+ WEEKLY = "weekly",
170
+ MONTHLY = "monthly"
171
+ }
172
+
173
+ type RpcUsageMetricsValueAggregated = {
174
+ /**
175
+ * The total number of requests
176
+ */
177
+ totalRequests: number;
178
+ /**
179
+ * The number of API credits used
180
+ */
181
+ apiCreditsUsed: number;
182
+ /**
183
+ * The number of requests per second
184
+ */
185
+ requestsPerSecond: number;
186
+ /**
187
+ * The success rate percentage
188
+ */
189
+ successRatePercent: number;
190
+ /**
191
+ * The median response time in milliseconds
192
+ */
193
+ medianResponseTimeMsecs: number;
194
+ /**
195
+ * The number of invalid requests
196
+ */
197
+ invalidRequests: number;
198
+ /**
199
+ * The number of API credits wasted on invalid requests
200
+ */
201
+ apiCreditsWasted: number;
202
+ /**
203
+ * Column name used for data aggregation
204
+ */
205
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
206
+ /**
207
+ * The value of the column used for data aggregation
208
+ */
209
+ groupValue?: (string | number);
210
+ };
211
+ declare namespace RpcUsageMetricsValueAggregated {
212
+ /**
213
+ * Column name used for data aggregation
214
+ */
215
+ enum groupedBy {
216
+ RPC_METHOD = "rpcMethod",
217
+ RESPONSE_CODE = "responseCode",
218
+ RL_BYPASS_TOKEN = "rlBypassToken",
219
+ REQUEST_PATH = "requestPath",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent",
223
+ NONE = "None"
224
+ }
225
+ }
226
+
227
+ type RpcMetrics = {
228
+ /**
229
+ * The timestamp of the metrics value
230
+ */
231
+ timestamp: number;
232
+ /**
233
+ * The metrics values for the timestamp
234
+ */
235
+ values: Array<RpcUsageMetricsValueAggregated>;
236
+ };
237
+
238
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
239
+ /**
240
+ * Duration in which the metrics value is aggregated
241
+ */
242
+ aggregateDuration: string;
243
+ /**
244
+ * Metrics values
245
+ */
246
+ metrics: Array<RpcMetrics>;
247
+ /**
248
+ * Network type for which the metrics are aggregated
249
+ */
250
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
251
+ };
252
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
253
+ /**
254
+ * Network type for which the metrics are aggregated
255
+ */
256
+ enum network {
257
+ MAINNET = "mainnet",
258
+ TESTNET = "testnet"
259
+ }
260
+ }
261
+
262
+ declare enum RpcUsageMetricsGroupByEnum {
263
+ RPC_METHOD = "rpcMethod",
264
+ RESPONSE_CODE = "responseCode",
265
+ RL_BYPASS_TOKEN = "rlBypassToken"
266
+ }
267
+
268
+ declare enum SubnetRpcTimeIntervalGranularity {
269
+ HOURLY = "hourly",
270
+ DAILY = "daily",
271
+ WEEKLY = "weekly",
272
+ MONTHLY = "monthly"
273
+ }
274
+
275
+ type SubnetRpcUsageMetricsResponseDTO = {
276
+ /**
277
+ * Duration in which the metrics value is aggregated
278
+ */
279
+ aggregateDuration: string;
280
+ /**
281
+ * Metrics values
282
+ */
283
+ metrics: Array<RpcMetrics>;
284
+ /**
285
+ * ChainId for which the metrics are aggregated
286
+ */
287
+ chainId: string;
288
+ };
289
+
290
+ declare enum TimeIntervalGranularityExtended {
291
+ MINUTE = "minute",
292
+ HOURLY = "hourly",
293
+ DAILY = "daily",
294
+ WEEKLY = "weekly",
295
+ MONTHLY = "monthly"
296
+ }
297
+
298
+ declare enum UsageMetricsGroupByEnum {
299
+ REQUEST_PATH = "requestPath",
300
+ RESPONSE_CODE = "responseCode",
301
+ CHAIN_ID = "chainId",
302
+ API_KEY_ID = "apiKeyId",
303
+ REQUEST_TYPE = "requestType"
304
+ }
305
+
306
+ type UsageMetricsValueDTO = {
307
+ /**
308
+ * Column name used for data aggregation
309
+ */
310
+ groupedBy: UsageMetricsValueDTO.groupedBy;
311
+ /**
312
+ * The value of the column used for data aggregation
313
+ */
314
+ groupValue?: (string | number);
315
+ /**
316
+ * The total number of requests
317
+ */
318
+ totalRequests: number;
319
+ /**
320
+ * The number of requests per second
321
+ */
322
+ requestsPerSecond: number;
323
+ /**
324
+ * The success rate percentage
325
+ */
326
+ successRatePercent: number;
327
+ /**
328
+ * The median response time in milliseconds
329
+ */
330
+ medianResponseTimeMsecs: number;
331
+ /**
332
+ * The number of invalid requests
333
+ */
334
+ invalidRequests: number;
335
+ /**
336
+ * The number of API credits used
337
+ */
338
+ apiCreditsUsed: number;
339
+ /**
340
+ * The number of API credits wasted on invalid requests
341
+ */
342
+ apiCreditsWasted: number;
343
+ };
344
+ declare namespace UsageMetricsValueDTO {
345
+ /**
346
+ * Column name used for data aggregation
347
+ */
348
+ enum groupedBy {
349
+ REQUEST_PATH = "requestPath",
350
+ RESPONSE_CODE = "responseCode",
351
+ CHAIN_ID = "chainId",
352
+ API_KEY_ID = "apiKeyId",
353
+ REQUEST_TYPE = "requestType",
354
+ NONE = "None"
355
+ }
356
+ }
357
+
358
+ type Metric = {
359
+ /**
360
+ * The timestamp of the metrics value
361
+ */
362
+ timestamp: number;
363
+ /**
364
+ * The metrics values for the timestamp
365
+ */
366
+ values: Array<UsageMetricsValueDTO>;
367
+ };
368
+
369
+ type UsageMetricsResponseDTO = {
370
+ /**
371
+ * Duration in which the metrics value is aggregated
372
+ */
373
+ aggregateDuration: string;
374
+ /**
375
+ * Org ID for which the metrics are aggregated
376
+ */
377
+ orgId: string;
378
+ /**
379
+ * Metrics values
380
+ */
381
+ metrics: Array<Metric>;
382
+ };
383
+
384
+ declare class DataApiUsageMetricsService {
385
+ readonly httpRequest: BaseHttpRequest;
386
+ constructor(httpRequest: BaseHttpRequest);
387
+ /**
388
+ * Get usage metrics for the Data API
389
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
390
+ * @returns UsageMetricsResponseDTO Successful response
391
+ * @throws ApiError
392
+ */
393
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
394
+ /**
395
+ * Organization ID to fetch usage metrics for
396
+ */
397
+ orgId?: string;
398
+ /**
399
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
400
+ */
401
+ startTimestamp?: number;
402
+ /**
403
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
404
+ */
405
+ endTimestamp?: number;
406
+ /**
407
+ * Time interval granularity for data aggregation
408
+ */
409
+ timeInterval?: TimeIntervalGranularityExtended;
410
+ /**
411
+ * Query param for the criterion used for grouping metrics
412
+ */
413
+ groupBy?: UsageMetricsGroupByEnum;
414
+ /**
415
+ * Filter data by chain ID.
416
+ */
417
+ chainId?: string;
418
+ /**
419
+ * Filter data by response status code.
420
+ */
421
+ responseCode?: string;
422
+ /**
423
+ * Filter data by request type.
424
+ */
425
+ requestType?: 'data' | 'rpc';
426
+ /**
427
+ * Filter data by API key ID.
428
+ */
429
+ apiKeyId?: string;
430
+ /**
431
+ * Filter data by request path.
432
+ */
433
+ requestPath?: string;
434
+ }): CancelablePromise<UsageMetricsResponseDTO>;
435
+ /**
436
+ * Get logs for requests made by client
437
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
438
+ * @returns LogsResponseDTO Successful response
439
+ * @throws ApiError
440
+ */
441
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
442
+ /**
443
+ * Organization ID to fetch usage metrics for
444
+ */
445
+ orgId?: string;
446
+ /**
447
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
448
+ */
449
+ startTimestamp?: number;
450
+ /**
451
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
452
+ */
453
+ endTimestamp?: number;
454
+ /**
455
+ * Filter data by chain ID.
456
+ */
457
+ chainId?: string;
458
+ /**
459
+ * Filter data by response status code.
460
+ */
461
+ responseCode?: string;
462
+ /**
463
+ * Filter data by request type.
464
+ */
465
+ requestType?: 'data' | 'rpc';
466
+ /**
467
+ * Filter data by API key ID.
468
+ */
469
+ apiKeyId?: string;
470
+ /**
471
+ * Filter data by request path.
472
+ */
473
+ requestPath?: string;
474
+ /**
475
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
476
+ */
477
+ pageToken?: string;
478
+ /**
479
+ * The maximum number of items to return.
480
+ */
481
+ pageSize?: number;
482
+ }): CancelablePromise<LogsResponseDTO>;
483
+ /**
484
+ * Get usage metrics for the Subnet RPC
485
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
486
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
487
+ * @throws ApiError
488
+ */
489
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
490
+ /**
491
+ * Time interval granularity for data aggregation for subnet
492
+ * rpc metrics
493
+ */
494
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
495
+ /**
496
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
497
+ */
498
+ startTimestamp?: number;
499
+ /**
500
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
501
+ */
502
+ endTimestamp?: number;
503
+ /**
504
+ * Query param for the criterion used for grouping metrics
505
+ */
506
+ groupBy?: RpcUsageMetricsGroupByEnum;
507
+ /**
508
+ * Filter data by chain ID.
509
+ */
510
+ chainId?: string;
511
+ /**
512
+ * Filter data by response status code.
513
+ */
514
+ responseCode?: string;
515
+ /**
516
+ * Filter data by RPC method.
517
+ */
518
+ rpcMethod?: string;
519
+ /**
520
+ * Filter data by Rl Bypass API Token.
521
+ */
522
+ rlBypassApiToken?: string;
523
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
524
+ /**
525
+ * @deprecated
526
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
527
+ *
528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
529
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
530
+ * @throws ApiError
531
+ */
532
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
533
+ /**
534
+ * Time interval granularity for data aggregation for subnet
535
+ * rpc metrics
536
+ */
537
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
538
+ /**
539
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
540
+ */
541
+ startTimestamp?: number;
542
+ /**
543
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
544
+ */
545
+ endTimestamp?: number;
546
+ /**
547
+ * Query param for the criterion used for grouping metrics
548
+ */
549
+ groupBy?: RpcUsageMetricsGroupByEnum;
550
+ /**
551
+ * Filter data by chain ID.
552
+ */
553
+ chainId?: string;
554
+ /**
555
+ * Filter data by response status code.
556
+ */
557
+ responseCode?: string;
558
+ /**
559
+ * Filter data by RPC method.
560
+ */
561
+ rpcMethod?: string;
562
+ /**
563
+ * Filter data by Rl Bypass API Token.
564
+ */
565
+ rlBypassApiToken?: string;
566
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
567
+ /**
568
+ * Get usage metrics for the Primary Network RPC
569
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
570
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
571
+ * @throws ApiError
572
+ */
573
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
574
+ /**
575
+ * Either mainnet or testnet/fuji.
576
+ */
577
+ network: Network;
578
+ /**
579
+ * Time interval granularity for data aggregation for subnet
580
+ * rpc metrics
581
+ */
582
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
583
+ /**
584
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
585
+ */
586
+ startTimestamp?: number;
587
+ /**
588
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
589
+ */
590
+ endTimestamp?: number;
591
+ /**
592
+ * Query param for the criterion used for grouping metrics
593
+ */
594
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
595
+ /**
596
+ * Filter data by response status code.
597
+ */
598
+ responseCode?: string;
599
+ /**
600
+ * Filter data by request path.
601
+ */
602
+ requestPath?: string;
603
+ /**
604
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
605
+ */
606
+ country?: string;
607
+ /**
608
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
609
+ */
610
+ continent?: string;
611
+ /**
612
+ * Filter data by User Agent.
613
+ */
614
+ userAgent?: string;
615
+ /**
616
+ * Filter data by RPC method.
617
+ */
618
+ rpcMethod?: string;
619
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
620
+ }
621
+
57
622
  declare class DefaultService {
58
623
  readonly httpRequest: BaseHttpRequest;
59
624
  constructor(httpRequest: BaseHttpRequest);
@@ -250,6 +815,10 @@ type ListErc1155BalancesResponse = {
250
815
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
251
816
  */
252
817
  nextPageToken?: string;
818
+ /**
819
+ * The native token balance for the address.
820
+ */
821
+ nativeTokenBalance: NativeTokenBalance;
253
822
  /**
254
823
  * The list of ERC-1155 token balances for the address.
255
824
  */
@@ -294,11 +863,22 @@ type Erc20TokenBalance = {
294
863
  * The monetary value of the balance, if a price is available for the token.
295
864
  */
296
865
  balanceValue?: Money;
866
+ /**
867
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
868
+ */
869
+ tokenReputation: Erc20TokenBalance.tokenReputation;
297
870
  };
298
871
  declare namespace Erc20TokenBalance {
299
872
  enum ercType {
300
873
  ERC_20 = "ERC-20"
301
874
  }
875
+ /**
876
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
877
+ */
878
+ enum tokenReputation {
879
+ MALICIOUS = "Malicious",
880
+ BENIGN = "Benign"
881
+ }
302
882
  }
303
883
 
304
884
  type ListErc20BalancesResponse = {
@@ -306,6 +886,10 @@ type ListErc20BalancesResponse = {
306
886
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
307
887
  */
308
888
  nextPageToken?: string;
889
+ /**
890
+ * The native token balance for the address.
891
+ */
892
+ nativeTokenBalance: NativeTokenBalance;
309
893
  /**
310
894
  * The list of ERC-20 token balances for the address.
311
895
  */
@@ -317,6 +901,10 @@ type ListErc721BalancesResponse = {
317
901
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
318
902
  */
319
903
  nextPageToken?: string;
904
+ /**
905
+ * The native token balance for the address.
906
+ */
907
+ nativeTokenBalance: NativeTokenBalance;
320
908
  /**
321
909
  * The list of ERC-721 token balances for the address.
322
910
  */
@@ -331,12 +919,12 @@ declare class EvmBalancesService {
331
919
  * Gets native token balance of a wallet address.
332
920
  *
333
921
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
334
- * @returns GetNativeBalanceResponse
922
+ * @returns GetNativeBalanceResponse Successful response
335
923
  * @throws ApiError
336
924
  */
337
925
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
338
926
  /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
927
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
340
928
  */
341
929
  chainId: string;
342
930
  /**
@@ -359,12 +947,12 @@ declare class EvmBalancesService {
359
947
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
360
948
  *
361
949
  * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
362
- * @returns ListErc20BalancesResponse
950
+ * @returns ListErc20BalancesResponse Successful response
363
951
  * @throws ApiError
364
952
  */
365
953
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
366
954
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
955
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
368
956
  */
369
957
  chainId: string;
370
958
  /**
@@ -380,7 +968,7 @@ declare class EvmBalancesService {
380
968
  */
381
969
  pageToken?: string;
382
970
  /**
383
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
971
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
384
972
  */
385
973
  pageSize?: number;
386
974
  /**
@@ -401,12 +989,12 @@ declare class EvmBalancesService {
401
989
  * Lists ERC-721 token balances of a wallet address.
402
990
  *
403
991
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
404
- * @returns ListErc721BalancesResponse
992
+ * @returns ListErc721BalancesResponse Successful response
405
993
  * @throws ApiError
406
994
  */
407
995
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
408
996
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
997
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
410
998
  */
411
999
  chainId: string;
412
1000
  /**
@@ -418,7 +1006,7 @@ declare class EvmBalancesService {
418
1006
  */
419
1007
  pageToken?: string;
420
1008
  /**
421
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
422
1010
  */
423
1011
  pageSize?: number;
424
1012
  /**
@@ -433,12 +1021,12 @@ declare class EvmBalancesService {
433
1021
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
1022
  *
435
1023
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
436
- * @returns ListErc1155BalancesResponse
1024
+ * @returns ListErc1155BalancesResponse Successful response
437
1025
  * @throws ApiError
438
1026
  */
439
1027
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
440
1028
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1029
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
442
1030
  */
443
1031
  chainId: string;
444
1032
  /**
@@ -454,7 +1042,7 @@ declare class EvmBalancesService {
454
1042
  */
455
1043
  pageToken?: string;
456
1044
  /**
457
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1045
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
458
1046
  */
459
1047
  pageSize?: number;
460
1048
  /**
@@ -467,12 +1055,12 @@ declare class EvmBalancesService {
467
1055
  * Lists ERC-721 and ERC-1155 token balances of a wallet address.
468
1056
  *
469
1057
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
470
- * @returns ListCollectibleBalancesResponse
1058
+ * @returns ListCollectibleBalancesResponse Successful response
471
1059
  * @throws ApiError
472
1060
  */
473
1061
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
1062
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1063
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
1064
  */
477
1065
  chainId: string;
478
1066
  /**
@@ -484,7 +1072,7 @@ declare class EvmBalancesService {
484
1072
  */
485
1073
  pageToken?: string;
486
1074
  /**
487
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
488
1076
  */
489
1077
  pageSize?: number;
490
1078
  /**
@@ -495,6 +1083,10 @@ declare class EvmBalancesService {
495
1083
  }
496
1084
 
497
1085
  type GetEvmBlockResponse = {
1086
+ /**
1087
+ * The EVM chain ID on which the block was created.
1088
+ */
1089
+ chainId: string;
498
1090
  /**
499
1091
  * The block number on the chain.
500
1092
  */
@@ -539,6 +1131,10 @@ type GetEvmBlockResponse = {
539
1131
  };
540
1132
 
541
1133
  type EvmBlock = {
1134
+ /**
1135
+ * The EVM chain ID on which the block was created.
1136
+ */
1137
+ chainId: string;
542
1138
  /**
543
1139
  * The block number on the chain.
544
1140
  */
@@ -593,15 +1189,35 @@ type ListEvmBlocksResponse = {
593
1189
  declare class EvmBlocksService {
594
1190
  readonly httpRequest: BaseHttpRequest;
595
1191
  constructor(httpRequest: BaseHttpRequest);
1192
+ /**
1193
+ * List latest blocks across all supported EVM chains
1194
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1195
+ * @returns ListEvmBlocksResponse Successful response
1196
+ * @throws ApiError
1197
+ */
1198
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1199
+ /**
1200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1201
+ */
1202
+ pageToken?: string;
1203
+ /**
1204
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1205
+ */
1206
+ pageSize?: number;
1207
+ /**
1208
+ * Either mainnet or testnet/fuji.
1209
+ */
1210
+ network?: Network;
1211
+ }): CancelablePromise<ListEvmBlocksResponse>;
596
1212
  /**
597
1213
  * List latest blocks
598
1214
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
599
- * @returns ListEvmBlocksResponse
1215
+ * @returns ListEvmBlocksResponse Successful response
600
1216
  * @throws ApiError
601
1217
  */
602
1218
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
1219
  /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1220
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
1221
  */
606
1222
  chainId: string;
607
1223
  /**
@@ -616,12 +1232,12 @@ declare class EvmBlocksService {
616
1232
  /**
617
1233
  * Get block
618
1234
  * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse
1235
+ * @returns GetEvmBlockResponse Successful response
620
1236
  * @throws ApiError
621
1237
  */
622
1238
  getBlock({ chainId, blockId, }: {
623
1239
  /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1240
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
1241
  */
626
1242
  chainId: string;
627
1243
  /**
@@ -631,6 +1247,12 @@ declare class EvmBlocksService {
631
1247
  }): CancelablePromise<GetEvmBlockResponse>;
632
1248
  }
633
1249
 
1250
+ declare enum ApiFeature {
1251
+ NFT_INDEXING = "nftIndexing",
1252
+ WEBHOOKS = "webhooks",
1253
+ TELEPORTER = "teleporter"
1254
+ }
1255
+
634
1256
  /**
635
1257
  * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
1258
  */
@@ -686,14 +1308,9 @@ type GetChainResponse = {
686
1308
  networkToken: NetworkToken;
687
1309
  chainLogoUri?: string;
688
1310
  private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1311
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
690
1312
  };
691
1313
 
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
1314
  type ChainInfo = {
698
1315
  chainId: string;
699
1316
  status: ChainStatus;
@@ -711,49 +1328,235 @@ type ChainInfo = {
711
1328
  networkToken: NetworkToken;
712
1329
  chainLogoUri?: string;
713
1330
  private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1331
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1332
+ };
1333
+
1334
+ type ListAddressChainsResponse = {
1335
+ indexedChains?: Array<ChainInfo>;
1336
+ unindexedChains?: Array<string>;
1337
+ };
1338
+
1339
+ type ListChainsResponse = {
1340
+ chains: Array<ChainInfo>;
1341
+ };
1342
+
1343
+ /**
1344
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1345
+ */
1346
+ declare enum TransactionMethodType {
1347
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1348
+ CONTRACT_CALL = "CONTRACT_CALL",
1349
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1350
+ }
1351
+
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1354
+ /**
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1356
+ */
1357
+ methodHash: string;
1358
+ /**
1359
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1360
+ */
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1365
+ /**
1366
+ * The contract name.
1367
+ */
1368
+ name?: string;
1369
+ /**
1370
+ * The contract symbol.
1371
+ */
1372
+ symbol?: string;
1373
+ /**
1374
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1375
+ */
1376
+ decimals?: number;
1377
+ /**
1378
+ * The logo uri for the address.
1379
+ */
1380
+ logoUri?: string;
1381
+ /**
1382
+ * A wallet or contract address in mixed-case checksum encoding.
1383
+ */
1384
+ address: string;
1385
+ };
1386
+
1387
+ type NativeTransaction = {
1388
+ /**
1389
+ * The block number on the chain.
1390
+ */
1391
+ blockNumber: string;
1392
+ /**
1393
+ * The block finality timestamp.
1394
+ */
1395
+ blockTimestamp: number;
1396
+ /**
1397
+ * The block hash identifier.
1398
+ */
1399
+ blockHash: string;
1400
+ /**
1401
+ * The EVM chain ID on which the transaction occured.
1402
+ */
1403
+ chainId: string;
1404
+ /**
1405
+ * The index at which the transaction occured in the block (0-indexed).
1406
+ */
1407
+ blockIndex: number;
1408
+ /**
1409
+ * The transaction hash identifier.
1410
+ */
1411
+ txHash: string;
1412
+ /**
1413
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1414
+ */
1415
+ txStatus: string;
1416
+ /**
1417
+ * The transaction type.
1418
+ */
1419
+ txType: number;
1420
+ /**
1421
+ * The gas limit set for the transaction.
1422
+ */
1423
+ gasLimit: string;
1424
+ /**
1425
+ * The amount of gas used.
1426
+ */
1427
+ gasUsed: string;
1428
+ /**
1429
+ * The gas price denominated by the number of decimals of the native token.
1430
+ */
1431
+ gasPrice: string;
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;
715
1440
  };
716
1441
 
717
- type ListChainsResponse = {
718
- chains: Array<ChainInfo>;
1442
+ type ListNativeTransactionsResponse = {
1443
+ /**
1444
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1445
+ */
1446
+ nextPageToken?: string;
1447
+ transactions: Array<NativeTransaction>;
719
1448
  };
720
1449
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
1450
+ declare enum TransactionStatus {
1451
+ FAILED = "failed",
1452
+ SUCCESS = "success"
724
1453
  }
725
1454
 
726
1455
  declare class EvmChainsService {
727
1456
  readonly httpRequest: BaseHttpRequest;
728
1457
  constructor(httpRequest: BaseHttpRequest);
1458
+ /**
1459
+ * List all chains associated with a given address
1460
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1461
+ * @returns ListAddressChainsResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAddressChains({ address, }: {
1465
+ /**
1466
+ * A wallet address.
1467
+ */
1468
+ address: string;
1469
+ }): CancelablePromise<ListAddressChainsResponse>;
729
1470
  /**
730
1471
  * List chains
731
- * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse
1472
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1473
+ * @returns ListChainsResponse Successful response
733
1474
  * @throws ApiError
734
1475
  */
735
1476
  supportedChains({ network, feature, }: {
736
1477
  /**
737
- * mainnet or testnet.
1478
+ * Either mainnet or testnet/fuji.
738
1479
  */
739
- network?: NetworkType;
1480
+ network?: Network;
740
1481
  /**
741
1482
  * Filter by feature.
742
1483
  */
743
- feature?: GlacierApiFeature;
1484
+ feature?: ApiFeature;
744
1485
  }): CancelablePromise<ListChainsResponse>;
745
1486
  /**
746
1487
  * Get chain information
747
- * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse
1488
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1489
+ * @returns GetChainResponse Successful response
749
1490
  * @throws ApiError
750
1491
  */
751
1492
  getChainInfo({ chainId, }: {
752
1493
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1494
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
1495
  */
755
1496
  chainId: string;
756
1497
  }): CancelablePromise<GetChainResponse>;
1498
+ /**
1499
+ * @deprecated
1500
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1501
+ *
1502
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1503
+ * @returns ListAddressChainsResponse Successful response
1504
+ * @throws ApiError
1505
+ */
1506
+ getAddressChains({ address, }: {
1507
+ /**
1508
+ * A wallet address.
1509
+ */
1510
+ address: string;
1511
+ }): CancelablePromise<ListAddressChainsResponse>;
1512
+ /**
1513
+ * @deprecated
1514
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1515
+ *
1516
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1517
+ * @returns ListNativeTransactionsResponse Successful response
1518
+ * @throws ApiError
1519
+ */
1520
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1521
+ /**
1522
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1523
+ */
1524
+ pageToken?: string;
1525
+ /**
1526
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1527
+ */
1528
+ pageSize?: number;
1529
+ /**
1530
+ * Either mainnet or testnet/fuji.
1531
+ */
1532
+ network?: Network;
1533
+ /**
1534
+ * A status filter for listed transactions.
1535
+ */
1536
+ status?: TransactionStatus;
1537
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1538
+ /**
1539
+ * @deprecated
1540
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1541
+ *
1542
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1543
+ * @returns ListEvmBlocksResponse Successful response
1544
+ * @throws ApiError
1545
+ */
1546
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1547
+ /**
1548
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1549
+ */
1550
+ pageToken?: string;
1551
+ /**
1552
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1553
+ */
1554
+ pageSize?: number;
1555
+ /**
1556
+ * Either mainnet or testnet/fuji.
1557
+ */
1558
+ network?: Network;
1559
+ }): CancelablePromise<ListEvmBlocksResponse>;
757
1560
  }
758
1561
 
759
1562
  type ImageAsset = {
@@ -925,7 +1728,7 @@ type Erc1155Contract = {
925
1728
  * A wallet or contract address in mixed-case checksum encoding.
926
1729
  */
927
1730
  address: string;
928
- deploymentDetails: ContractDeploymentDetails;
1731
+ deploymentDetails?: ContractDeploymentDetails;
929
1732
  ercType: Erc1155Contract.ercType;
930
1733
  /**
931
1734
  * The contract symbol.
@@ -956,7 +1759,7 @@ type Erc20Contract = {
956
1759
  * A wallet or contract address in mixed-case checksum encoding.
957
1760
  */
958
1761
  address: string;
959
- deploymentDetails: ContractDeploymentDetails;
1762
+ deploymentDetails?: ContractDeploymentDetails;
960
1763
  ercType: Erc20Contract.ercType;
961
1764
  /**
962
1765
  * The contract symbol.
@@ -991,7 +1794,7 @@ type Erc721Contract = {
991
1794
  * A wallet or contract address in mixed-case checksum encoding.
992
1795
  */
993
1796
  address: string;
994
- deploymentDetails: ContractDeploymentDetails;
1797
+ deploymentDetails?: ContractDeploymentDetails;
995
1798
  ercType: Erc721Contract.ercType;
996
1799
  /**
997
1800
  * The contract symbol.
@@ -1021,7 +1824,7 @@ type UnknownContract = {
1021
1824
  * A wallet or contract address in mixed-case checksum encoding.
1022
1825
  */
1023
1826
  address: string;
1024
- deploymentDetails: ContractDeploymentDetails;
1827
+ deploymentDetails?: ContractDeploymentDetails;
1025
1828
  ercType: UnknownContract.ercType;
1026
1829
  };
1027
1830
  declare namespace UnknownContract {
@@ -1040,12 +1843,12 @@ declare class EvmContractsService {
1040
1843
  /**
1041
1844
  * Get contract metadata
1042
1845
  * Gets metadata about the contract at the given address.
1043
- * @returns any
1846
+ * @returns any Successful response
1044
1847
  * @throws ApiError
1045
1848
  */
1046
1849
  getContractMetadata({ chainId, address, }: {
1047
1850
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1851
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1852
  */
1050
1853
  chainId: string;
1051
1854
  /**
@@ -1056,12 +1859,12 @@ declare class EvmContractsService {
1056
1859
  /**
1057
1860
  * Update contract information
1058
1861
  * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
- * @returns UpdateContractResponse
1862
+ * @returns UpdateContractResponse Successful response
1060
1863
  * @throws ApiError
1061
1864
  */
1062
1865
  updateContractInfo({ chainId, address, requestBody, }: {
1063
1866
  /**
1064
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1867
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
1868
  */
1066
1869
  chainId: string;
1067
1870
  /**
@@ -1088,29 +1891,6 @@ declare namespace Erc1155Token {
1088
1891
  }
1089
1892
  }
1090
1893
 
1091
- type RichAddress = {
1092
- /**
1093
- * The contract name.
1094
- */
1095
- name?: string;
1096
- /**
1097
- * The contract symbol.
1098
- */
1099
- symbol?: string;
1100
- /**
1101
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
- */
1103
- decimals?: number;
1104
- /**
1105
- * The logo uri for the address.
1106
- */
1107
- logoUri?: string;
1108
- /**
1109
- * A wallet or contract address in mixed-case checksum encoding.
1110
- */
1111
- address: string;
1112
- };
1113
-
1114
1894
  type Erc1155TransferDetails = {
1115
1895
  from: RichAddress;
1116
1896
  to: RichAddress;
@@ -1195,27 +1975,6 @@ type Erc721TransferDetails = {
1195
1975
  erc721Token: Erc721Token;
1196
1976
  };
1197
1977
 
1198
- /**
1199
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
- */
1201
- declare enum TransactionMethodType {
1202
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
- CONTRACT_CALL = "CONTRACT_CALL",
1204
- CONTRACT_CREATION = "CONTRACT_CREATION"
1205
- }
1206
-
1207
- type Method = {
1208
- callType: TransactionMethodType;
1209
- /**
1210
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1211
- */
1212
- methodHash: string;
1213
- /**
1214
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1215
- */
1216
- methodName?: string;
1217
- };
1218
-
1219
1978
  type FullNativeTransactionDetails = {
1220
1979
  /**
1221
1980
  * The block number on the chain.
@@ -1229,6 +1988,10 @@ type FullNativeTransactionDetails = {
1229
1988
  * The block hash identifier.
1230
1989
  */
1231
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1232
1995
  /**
1233
1996
  * The index at which the transaction occured in the block (0-indexed).
1234
1997
  */
@@ -1279,6 +2042,7 @@ declare enum InternalTransactionOpCall {
1279
2042
  CALL = "CALL",
1280
2043
  CREATE = "CREATE",
1281
2044
  CREATE2 = "CREATE2",
2045
+ CREATE3 = "CREATE3",
1282
2046
  CALLCODE = "CALLCODE",
1283
2047
  DELEGATECALL = "DELEGATECALL",
1284
2048
  STATICCALL = "STATICCALL"
@@ -1309,6 +2073,24 @@ type NetworkTokenDetails = {
1309
2073
  historicalPrice?: Money;
1310
2074
  };
1311
2075
 
2076
+ declare enum TransactionDirectionType {
2077
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
2078
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
2079
+ }
2080
+
2081
+ type TeleporterMessageInfo = {
2082
+ teleporterMessageId: string;
2083
+ direction: TransactionDirectionType;
2084
+ /**
2085
+ * chain id of the source chain. valid only for destination transactions
2086
+ */
2087
+ sourceChainId?: Record<string, any>;
2088
+ /**
2089
+ * chain id of the destination chain. valid only for source transactions
2090
+ */
2091
+ destinationChainId?: Record<string, any>;
2092
+ };
2093
+
1312
2094
  type GetTransactionResponse = {
1313
2095
  /**
1314
2096
  * The list of ERC-20 transfers.
@@ -1323,11 +2105,15 @@ type GetTransactionResponse = {
1323
2105
  */
1324
2106
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1325
2107
  /**
1326
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2108
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1327
2109
  */
1328
2110
  internalTransactions?: Array<InternalTransactionDetails>;
1329
2111
  networkTokenDetails: NetworkTokenDetails;
1330
2112
  nativeTransaction: FullNativeTransactionDetails;
2113
+ /**
2114
+ * Corresponding teleporter message info if available.
2115
+ */
2116
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
2117
  };
1332
2118
 
1333
2119
  type ListContractsResponse = {
@@ -1435,98 +2221,41 @@ type ListErc721TransactionsResponse = {
1435
2221
 
1436
2222
  type InternalTransaction = {
1437
2223
  /**
1438
- * The block number on the chain.
2224
+ * Sender address
1439
2225
  */
1440
- blockNumber: string;
2226
+ from: string;
1441
2227
  /**
1442
- * The block finality timestamp.
2228
+ * Recipient address
1443
2229
  */
1444
- blockTimestamp: number;
2230
+ to: string;
1445
2231
  /**
1446
- * The block hash identifier.
2232
+ * Internal transaction type
1447
2233
  */
1448
- blockHash: string;
2234
+ internalTxType: string;
1449
2235
  /**
1450
- * The transaction hash identifier.
2236
+ * Value transferred
1451
2237
  */
1452
- txHash: string;
1453
- from: RichAddress;
1454
- to: RichAddress;
1455
- internalTxType: InternalTransactionOpCall;
1456
2238
  value: string;
1457
2239
  /**
1458
- * True if the internal transaction was reverted.
2240
+ * Gas used
1459
2241
  */
1460
- isReverted: boolean;
1461
2242
  gasUsed: string;
1462
- gasLimit: string;
1463
- };
1464
-
1465
- type ListInternalTransactionsResponse = {
1466
- /**
1467
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1468
- */
1469
- nextPageToken?: string;
1470
- transactions: Array<InternalTransaction>;
1471
- };
1472
-
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
1498
- /**
1499
- * The transaction type.
1500
- */
1501
- txType: number;
1502
2243
  /**
1503
- * The gas limit set for the transaction.
2244
+ * Gas limit
1504
2245
  */
1505
2246
  gasLimit: string;
1506
2247
  /**
1507
- * The amount of gas used.
1508
- */
1509
- gasUsed: string;
1510
- /**
1511
- * The gas price denominated by the number of decimals of the native token.
1512
- */
1513
- gasPrice: string;
1514
- /**
1515
- * The nonce used by the sender of the transaction.
2248
+ * Transaction hash
1516
2249
  */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
2250
+ transactionHash: string;
1522
2251
  };
1523
2252
 
1524
- type ListNativeTransactionsResponse = {
2253
+ type ListInternalTransactionsResponse = {
1525
2254
  /**
1526
2255
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1527
2256
  */
1528
2257
  nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
2258
+ transactions: Array<InternalTransaction>;
1530
2259
  };
1531
2260
 
1532
2261
  type TransactionDetails = {
@@ -1547,7 +2276,7 @@ type TransactionDetails = {
1547
2276
  */
1548
2277
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1549
2278
  /**
1550
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2279
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1551
2280
  */
1552
2281
  internalTransactions?: Array<InternalTransactionDetails>;
1553
2282
  };
@@ -1573,23 +2302,42 @@ declare enum SortOrder {
1573
2302
  DESC = "desc"
1574
2303
  }
1575
2304
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2305
  declare class EvmTransactionsService {
1582
2306
  readonly httpRequest: BaseHttpRequest;
1583
2307
  constructor(httpRequest: BaseHttpRequest);
2308
+ /**
2309
+ * List the latest transactions across all supported EVM chains
2310
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2311
+ * @returns ListNativeTransactionsResponse Successful response
2312
+ * @throws ApiError
2313
+ */
2314
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2315
+ /**
2316
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2317
+ */
2318
+ pageToken?: string;
2319
+ /**
2320
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2321
+ */
2322
+ pageSize?: number;
2323
+ /**
2324
+ * Either mainnet or testnet/fuji.
2325
+ */
2326
+ network?: Network;
2327
+ /**
2328
+ * A status filter for listed transactions.
2329
+ */
2330
+ status?: TransactionStatus;
2331
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1584
2332
  /**
1585
2333
  * Get deployment transaction
1586
2334
  * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse
2335
+ * @returns GetTransactionResponse Successful response
1588
2336
  * @throws ApiError
1589
2337
  */
1590
2338
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2339
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2340
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
2341
  */
1594
2342
  chainId: string;
1595
2343
  /**
@@ -1604,12 +2352,12 @@ declare class EvmTransactionsService {
1604
2352
  /**
1605
2353
  * List deployed contracts
1606
2354
  * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse
2355
+ * @returns ListContractsResponse Successful response
1608
2356
  * @throws ApiError
1609
2357
  */
1610
2358
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
2359
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2360
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2361
  */
1614
2362
  chainId: string;
1615
2363
  /**
@@ -1628,12 +2376,12 @@ declare class EvmTransactionsService {
1628
2376
  /**
1629
2377
  * List ERC transfers
1630
2378
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse
2379
+ * @returns ListTransfersResponse Successful response
1632
2380
  * @throws ApiError
1633
2381
  */
1634
2382
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2383
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2384
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2385
  */
1638
2386
  chainId: string;
1639
2387
  /**
@@ -1662,12 +2410,12 @@ declare class EvmTransactionsService {
1662
2410
  * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1663
2411
  *
1664
2412
  * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse
2413
+ * @returns ListTransactionDetailsResponse Successful response
1666
2414
  * @throws ApiError
1667
2415
  */
1668
2416
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
2417
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2418
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2419
  */
1672
2420
  chainId: string;
1673
2421
  /**
@@ -1698,12 +2446,12 @@ declare class EvmTransactionsService {
1698
2446
  /**
1699
2447
  * List native transactions
1700
2448
  * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse
2449
+ * @returns ListNativeTransactionsResponse Successful response
1702
2450
  * @throws ApiError
1703
2451
  */
1704
2452
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2453
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2454
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2455
  */
1708
2456
  chainId: string;
1709
2457
  /**
@@ -1730,12 +2478,12 @@ declare class EvmTransactionsService {
1730
2478
  /**
1731
2479
  * List ERC-20 transfers
1732
2480
  * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse
2481
+ * @returns ListErc20TransactionsResponse Successful response
1734
2482
  * @throws ApiError
1735
2483
  */
1736
2484
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
2485
  /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2486
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
2487
  */
1740
2488
  chainId: string;
1741
2489
  /**
@@ -1762,12 +2510,12 @@ declare class EvmTransactionsService {
1762
2510
  /**
1763
2511
  * List ERC-721 transfers
1764
2512
  * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse
2513
+ * @returns ListErc721TransactionsResponse Successful response
1766
2514
  * @throws ApiError
1767
2515
  */
1768
2516
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
2517
  /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2518
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
2519
  */
1772
2520
  chainId: string;
1773
2521
  /**
@@ -1792,28 +2540,335 @@ declare class EvmTransactionsService {
1792
2540
  pageSize?: number;
1793
2541
  }): CancelablePromise<ListErc721TransactionsResponse>;
1794
2542
  /**
1795
- * List ERC-1155 transfers
1796
- * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse
2543
+ * List ERC-1155 transfers
2544
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2545
+ * @returns ListErc1155TransactionsResponse Successful response
2546
+ * @throws ApiError
2547
+ */
2548
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2549
+ /**
2550
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2551
+ */
2552
+ chainId: string;
2553
+ /**
2554
+ * A wallet address.
2555
+ */
2556
+ address: string;
2557
+ /**
2558
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2559
+ */
2560
+ startBlock?: number;
2561
+ /**
2562
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2563
+ */
2564
+ endBlock?: number;
2565
+ /**
2566
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2567
+ */
2568
+ pageToken?: string;
2569
+ /**
2570
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2571
+ */
2572
+ pageSize?: number;
2573
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
2574
+ /**
2575
+ * List internal transactions
2576
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2577
+ *
2578
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2579
+ * @returns ListInternalTransactionsResponse Successful response
2580
+ * @throws ApiError
2581
+ */
2582
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2583
+ /**
2584
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2585
+ */
2586
+ chainId: string;
2587
+ /**
2588
+ * A wallet address.
2589
+ */
2590
+ address: string;
2591
+ /**
2592
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2593
+ */
2594
+ startBlock?: number;
2595
+ /**
2596
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2597
+ */
2598
+ endBlock?: number;
2599
+ /**
2600
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2601
+ */
2602
+ pageToken?: string;
2603
+ /**
2604
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2605
+ */
2606
+ pageSize?: number;
2607
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2608
+ /**
2609
+ * Get transaction
2610
+ * Gets the details of a single transaction.
2611
+ * @returns GetTransactionResponse Successful response
2612
+ * @throws ApiError
2613
+ */
2614
+ getTransaction({ chainId, txHash, }: {
2615
+ /**
2616
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2617
+ */
2618
+ chainId: string;
2619
+ /**
2620
+ * A transaction hash.
2621
+ */
2622
+ txHash: string;
2623
+ }): CancelablePromise<GetTransactionResponse>;
2624
+ /**
2625
+ * List transactions for a block
2626
+ * Lists the transactions that occured in a given block.
2627
+ * @returns ListNativeTransactionsResponse Successful response
2628
+ * @throws ApiError
2629
+ */
2630
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2631
+ /**
2632
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2633
+ */
2634
+ chainId: string;
2635
+ /**
2636
+ * A block identifier which is either a block number or the block hash.
2637
+ */
2638
+ blockId: string;
2639
+ /**
2640
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2641
+ */
2642
+ pageToken?: string;
2643
+ /**
2644
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2645
+ */
2646
+ pageSize?: number;
2647
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2648
+ /**
2649
+ * List latest transactions
2650
+ * Lists the latest transactions. Filterable by status.
2651
+ * @returns ListNativeTransactionsResponse Successful response
2652
+ * @throws ApiError
2653
+ */
2654
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2655
+ /**
2656
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2657
+ */
2658
+ chainId: string;
2659
+ /**
2660
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2661
+ */
2662
+ pageToken?: string;
2663
+ /**
2664
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2665
+ */
2666
+ pageSize?: number;
2667
+ /**
2668
+ * A status filter for listed transactions.
2669
+ */
2670
+ status?: TransactionStatus;
2671
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2672
+ }
2673
+
2674
+ type HealthIndicatorResultDto = {
2675
+ /**
2676
+ * Status of the health indicator.
2677
+ */
2678
+ status?: HealthIndicatorResultDto.status;
2679
+ };
2680
+ declare namespace HealthIndicatorResultDto {
2681
+ /**
2682
+ * Status of the health indicator.
2683
+ */
2684
+ enum status {
2685
+ UP = "up",
2686
+ DOWN = "down"
2687
+ }
2688
+ }
2689
+
2690
+ type HealthCheckResultDto = {
2691
+ status?: HealthCheckResultDto.status;
2692
+ info?: any | null;
2693
+ error?: any | null;
2694
+ details?: Record<string, HealthIndicatorResultDto>;
2695
+ };
2696
+ declare namespace HealthCheckResultDto {
2697
+ enum status {
2698
+ ERROR = "error",
2699
+ OK = "ok",
2700
+ SHUTTING_DOWN = "shutting_down"
2701
+ }
2702
+ }
2703
+
2704
+ declare class HealthCheckService {
2705
+ readonly httpRequest: BaseHttpRequest;
2706
+ constructor(httpRequest: BaseHttpRequest);
2707
+ /**
2708
+ * Get the health of the service
2709
+ * Check the health of the service.
2710
+ * @returns HealthCheckResultDto The health of the service
2711
+ * @throws ApiError
2712
+ */
2713
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2714
+ }
2715
+
2716
+ type IcmDestinationTransaction = {
2717
+ txHash: string;
2718
+ timestamp: number;
2719
+ gasSpent: string;
2720
+ rewardRedeemer: string;
2721
+ delivererAddress: string;
2722
+ };
2723
+
2724
+ type IcmReceipt = {
2725
+ receivedMessageNonce: string;
2726
+ relayerRewardAddress: string;
2727
+ };
2728
+
2729
+ type IcmRewardDetails = {
2730
+ /**
2731
+ * A wallet or contract address in mixed-case checksum encoding.
2732
+ */
2733
+ address: string;
2734
+ /**
2735
+ * The contract name.
2736
+ */
2737
+ name: string;
2738
+ /**
2739
+ * The contract symbol.
2740
+ */
2741
+ symbol: string;
2742
+ /**
2743
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2744
+ */
2745
+ decimals: number;
2746
+ /**
2747
+ * The logo uri for the address.
2748
+ */
2749
+ logoUri?: string;
2750
+ ercType: IcmRewardDetails.ercType;
2751
+ /**
2752
+ * The token price, if available.
2753
+ */
2754
+ price?: Money;
2755
+ value: string;
2756
+ };
2757
+ declare namespace IcmRewardDetails {
2758
+ enum ercType {
2759
+ ERC_20 = "ERC-20"
2760
+ }
2761
+ }
2762
+
2763
+ type IcmSourceTransaction = {
2764
+ txHash: string;
2765
+ timestamp: number;
2766
+ gasSpent: string;
2767
+ };
2768
+
2769
+ type DeliveredIcmMessage = {
2770
+ messageId: string;
2771
+ icmContractAddress: string;
2772
+ sourceBlockchainId: string;
2773
+ destinationBlockchainId: string;
2774
+ sourceEvmChainId: string;
2775
+ destinationEvmChainId: string;
2776
+ messageNonce: string;
2777
+ from: string;
2778
+ to: string;
2779
+ data?: string;
2780
+ messageExecuted: boolean;
2781
+ receipts: Array<IcmReceipt>;
2782
+ receiptDelivered: boolean;
2783
+ rewardDetails: IcmRewardDetails;
2784
+ sourceTransaction: IcmSourceTransaction;
2785
+ destinationTransaction: IcmDestinationTransaction;
2786
+ status: DeliveredIcmMessage.status;
2787
+ };
2788
+ declare namespace DeliveredIcmMessage {
2789
+ enum status {
2790
+ DELIVERED = "delivered"
2791
+ }
2792
+ }
2793
+
2794
+ type DeliveredSourceNotIndexedIcmMessage = {
2795
+ messageId: string;
2796
+ icmContractAddress: string;
2797
+ sourceBlockchainId: string;
2798
+ destinationBlockchainId: string;
2799
+ sourceEvmChainId: string;
2800
+ destinationEvmChainId: string;
2801
+ messageNonce: string;
2802
+ from: string;
2803
+ to: string;
2804
+ data?: string;
2805
+ messageExecuted: boolean;
2806
+ receipts: Array<IcmReceipt>;
2807
+ receiptDelivered: boolean;
2808
+ rewardDetails: IcmRewardDetails;
2809
+ destinationTransaction: IcmDestinationTransaction;
2810
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2811
+ };
2812
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2813
+ enum status {
2814
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2815
+ }
2816
+ }
2817
+
2818
+ type PendingIcmMessage = {
2819
+ messageId: string;
2820
+ icmContractAddress: string;
2821
+ sourceBlockchainId: string;
2822
+ destinationBlockchainId: string;
2823
+ sourceEvmChainId: string;
2824
+ destinationEvmChainId: string;
2825
+ messageNonce: string;
2826
+ from: string;
2827
+ to: string;
2828
+ data?: string;
2829
+ messageExecuted: boolean;
2830
+ receipts: Array<IcmReceipt>;
2831
+ receiptDelivered: boolean;
2832
+ rewardDetails: IcmRewardDetails;
2833
+ sourceTransaction: IcmSourceTransaction;
2834
+ status: PendingIcmMessage.status;
2835
+ };
2836
+ declare namespace PendingIcmMessage {
2837
+ enum status {
2838
+ PENDING = "pending"
2839
+ }
2840
+ }
2841
+
2842
+ type ListIcmMessagesResponse = {
2843
+ /**
2844
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2845
+ */
2846
+ nextPageToken?: string;
2847
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2848
+ };
2849
+
2850
+ declare class InterchainMessagingService {
2851
+ readonly httpRequest: BaseHttpRequest;
2852
+ constructor(httpRequest: BaseHttpRequest);
2853
+ /**
2854
+ * Get an ICM message
2855
+ * Gets an ICM message by teleporter message ID.
2856
+ * @returns any Successful response
1798
2857
  * @throws ApiError
1799
2858
  */
1800
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
- /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
- */
1804
- chainId: string;
1805
- /**
1806
- * A wallet address.
1807
- */
1808
- address: string;
1809
- /**
1810
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1811
- */
1812
- startBlock?: number;
2859
+ getIcmMessage({ messageId, }: {
1813
2860
  /**
1814
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2861
+ * The teleporter message ID of the ICM message.
1815
2862
  */
1816
- endBlock?: number;
2863
+ messageId: string;
2864
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2865
+ /**
2866
+ * List ICM messages
2867
+ * Lists ICM messages. Ordered by timestamp in descending order.
2868
+ * @returns ListIcmMessagesResponse Successful response
2869
+ * @throws ApiError
2870
+ */
2871
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
1817
2872
  /**
1818
2873
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1819
2874
  */
@@ -1822,84 +2877,42 @@ declare class EvmTransactionsService {
1822
2877
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
2878
  */
1824
2879
  pageSize?: number;
1825
- }): CancelablePromise<ListErc1155TransactionsResponse>;
1826
- /**
1827
- * List internal transactions
1828
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
- *
1830
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1831
- * @returns ListInternalTransactionsResponse
1832
- * @throws ApiError
1833
- */
1834
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
- /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
- */
1838
- chainId: string;
1839
- /**
1840
- * A wallet address.
1841
- */
1842
- address: string;
1843
- /**
1844
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1845
- */
1846
- startBlock?: number;
1847
- /**
1848
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1849
- */
1850
- endBlock?: number;
1851
2880
  /**
1852
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2881
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
1853
2882
  */
1854
- pageToken?: string;
2883
+ sourceBlockchainId?: string;
1855
2884
  /**
1856
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2885
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
1857
2886
  */
1858
- pageSize?: number;
1859
- }): CancelablePromise<ListInternalTransactionsResponse>;
1860
- /**
1861
- * Get transaction
1862
- * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse
1864
- * @throws ApiError
1865
- */
1866
- getTransaction({ chainId, txHash, }: {
2887
+ destinationBlockchainId?: string;
1867
2888
  /**
1868
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2889
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
1869
2890
  */
1870
- chainId: string;
2891
+ blockchainId?: string;
1871
2892
  /**
1872
- * A transaction hash.
2893
+ * The address of the recipient of the ICM message.
1873
2894
  */
1874
- txHash: string;
1875
- }): CancelablePromise<GetTransactionResponse>;
1876
- /**
1877
- * List transactions for a block
1878
- * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse
1880
- * @throws ApiError
1881
- */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
2895
+ to?: string;
1883
2896
  /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2897
+ * The address of the sender of the ICM message.
1885
2898
  */
1886
- chainId: string;
2899
+ from?: string;
1887
2900
  /**
1888
- * A block identifier which is either a block number or the block hash.
2901
+ * Either mainnet or testnet/fuji.
1889
2902
  */
1890
- blockId: string;
1891
- }): CancelablePromise<ListNativeTransactionsResponse>;
2903
+ network?: Network;
2904
+ }): CancelablePromise<ListIcmMessagesResponse>;
1892
2905
  /**
1893
- * List latest transactions
1894
- * Lists the latest transactions. Filterable by status.
1895
- * @returns ListNativeTransactionsResponse
2906
+ * List ICM messages by address
2907
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2908
+ * @returns ListIcmMessagesResponse Successful response
1896
2909
  * @throws ApiError
1897
2910
  */
1898
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2911
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
1899
2912
  /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2913
+ * An EVM address.
1901
2914
  */
1902
- chainId: string;
2915
+ address: string;
1903
2916
  /**
1904
2917
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1905
2918
  */
@@ -1909,26 +2922,10 @@ declare class EvmTransactionsService {
1909
2922
  */
1910
2923
  pageSize?: number;
1911
2924
  /**
1912
- * A status filter for listed transactions.
2925
+ * Either mainnet or testnet/fuji.
1913
2926
  */
1914
- status?: TransactionStatus;
1915
- }): CancelablePromise<ListNativeTransactionsResponse>;
1916
- }
1917
-
1918
- declare class HealthCheckService {
1919
- readonly httpRequest: BaseHttpRequest;
1920
- constructor(httpRequest: BaseHttpRequest);
1921
- /**
1922
- * Get the health of the service
1923
- * @returns any The Health Check is successful
1924
- * @throws ApiError
1925
- */
1926
- healthCheck(): CancelablePromise<{
1927
- status?: string;
1928
- info?: Record<string, Record<string, string>> | null;
1929
- error?: Record<string, Record<string, string>> | null;
1930
- details?: Record<string, Record<string, string>>;
1931
- }>;
2927
+ network?: Network;
2928
+ }): CancelablePromise<ListIcmMessagesResponse>;
1932
2929
  }
1933
2930
 
1934
2931
  type ListNftTokens = {
@@ -1945,12 +2942,12 @@ declare class NfTsService {
1945
2942
  /**
1946
2943
  * Reindex NFT metadata
1947
2944
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1948
- * @returns any
2945
+ * @returns any Successful response
1949
2946
  * @throws ApiError
1950
2947
  */
1951
2948
  reindexNft({ chainId, address, tokenId, }: {
1952
2949
  /**
1953
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2950
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1954
2951
  */
1955
2952
  chainId: string;
1956
2953
  /**
@@ -1965,12 +2962,12 @@ declare class NfTsService {
1965
2962
  /**
1966
2963
  * List tokens
1967
2964
  * Lists tokens for an NFT contract.
1968
- * @returns ListNftTokens
2965
+ * @returns ListNftTokens Successful response
1969
2966
  * @throws ApiError
1970
2967
  */
1971
2968
  listTokens({ chainId, address, pageToken, pageSize, }: {
1972
2969
  /**
1973
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2970
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
2971
  */
1975
2972
  chainId: string;
1976
2973
  /**
@@ -1989,12 +2986,12 @@ declare class NfTsService {
1989
2986
  /**
1990
2987
  * Get token details
1991
2988
  * Gets token details for a specific token of an NFT contract.
1992
- * @returns any
2989
+ * @returns any Successful response
1993
2990
  * @throws ApiError
1994
2991
  */
1995
2992
  getTokenDetails({ chainId, address, tokenId, }: {
1996
2993
  /**
1997
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2994
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1998
2995
  */
1999
2996
  chainId: string;
2000
2997
  /**
@@ -2008,6 +3005,108 @@ declare class NfTsService {
2008
3005
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2009
3006
  }
2010
3007
 
3008
+ type AccessRequest = {
3009
+ /**
3010
+ * The email address to send the access token to
3011
+ */
3012
+ email: string;
3013
+ /**
3014
+ * The captcha to verify the user
3015
+ */
3016
+ captcha: string;
3017
+ };
3018
+
3019
+ type NotificationsResponse = {
3020
+ message: string;
3021
+ };
3022
+
3023
+ type SubscribeRequest = {
3024
+ /**
3025
+ * The access token to use for authentication
3026
+ */
3027
+ accessToken: string;
3028
+ /**
3029
+ * The node ID to subscribe to
3030
+ */
3031
+ nodeId: string;
3032
+ /**
3033
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3034
+ */
3035
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3036
+ };
3037
+
3038
+ type SubscriptionsRequest = {
3039
+ /**
3040
+ * The access token to use for authentication
3041
+ */
3042
+ accessToken: string;
3043
+ };
3044
+
3045
+ type SubscriptionsResponse = {
3046
+ /**
3047
+ * The email address of the user
3048
+ */
3049
+ email: string;
3050
+ /**
3051
+ * The subscriptions of the user
3052
+ */
3053
+ subscriptions: Record<string, {
3054
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3055
+ }>;
3056
+ };
3057
+
3058
+ type UnsubscribeRequest = {
3059
+ /**
3060
+ * The access token to use for authentication
3061
+ */
3062
+ accessToken: string;
3063
+ /**
3064
+ * The node ID to subscribe to
3065
+ */
3066
+ nodeId: string;
3067
+ };
3068
+
3069
+ declare class NotificationsService {
3070
+ readonly httpRequest: BaseHttpRequest;
3071
+ constructor(httpRequest: BaseHttpRequest);
3072
+ /**
3073
+ * Access Notifications
3074
+ * Access notifications.
3075
+ * @returns NotificationsResponse Successful response
3076
+ * @throws ApiError
3077
+ */
3078
+ access({ requestBody, }: {
3079
+ requestBody: AccessRequest;
3080
+ }): CancelablePromise<NotificationsResponse>;
3081
+ /**
3082
+ * Subscribe to Notifications
3083
+ * Subscribe to receive notifications.
3084
+ * @returns NotificationsResponse Successful response
3085
+ * @throws ApiError
3086
+ */
3087
+ subscribe({ requestBody, }: {
3088
+ requestBody: SubscribeRequest;
3089
+ }): CancelablePromise<NotificationsResponse>;
3090
+ /**
3091
+ * Unsubscribe from Notifications
3092
+ * Unsubscribe from receiving notifications.
3093
+ * @returns NotificationsResponse Successful response
3094
+ * @throws ApiError
3095
+ */
3096
+ unsubscribe({ requestBody, }: {
3097
+ requestBody: UnsubscribeRequest;
3098
+ }): CancelablePromise<NotificationsResponse>;
3099
+ /**
3100
+ * Get Subscriptions
3101
+ * Get subscriptions.
3102
+ * @returns SubscriptionsResponse Successful response
3103
+ * @throws ApiError
3104
+ */
3105
+ subscriptions({ requestBody, }: {
3106
+ requestBody: SubscriptionsRequest;
3107
+ }): CancelablePromise<SubscriptionsResponse>;
3108
+ }
3109
+
2011
3110
  type EvmNetworkOptions = {
2012
3111
  addresses: Array<string>;
2013
3112
  includeChains: Array<string>;
@@ -2019,16 +3118,16 @@ declare enum EVMOperationType {
2019
3118
 
2020
3119
  type CreateEvmTransactionExportRequest = {
2021
3120
  type: EVMOperationType;
2022
- firstDate: string;
2023
- lastDate: string;
3121
+ firstDate?: string;
3122
+ lastDate?: string;
2024
3123
  /**
2025
3124
  * @deprecated
2026
3125
  */
2027
- startDate: string;
3126
+ startDate?: string;
2028
3127
  /**
2029
3128
  * @deprecated
2030
3129
  */
2031
- endDate: string;
3130
+ endDate?: string;
2032
3131
  options: EvmNetworkOptions;
2033
3132
  };
2034
3133
 
@@ -2041,21 +3140,21 @@ declare enum PrimaryNetworkOperationType {
2041
3140
  type PrimaryNetworkOptions = {
2042
3141
  addresses?: Array<string>;
2043
3142
  cChainEvmAddresses?: Array<string>;
2044
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
3143
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2045
3144
  };
2046
3145
 
2047
3146
  type CreatePrimaryNetworkTransactionExportRequest = {
2048
3147
  type: PrimaryNetworkOperationType;
2049
- firstDate: string;
2050
- lastDate: string;
3148
+ firstDate?: string;
3149
+ lastDate?: string;
2051
3150
  /**
2052
3151
  * @deprecated
2053
3152
  */
2054
- startDate: string;
3153
+ startDate?: string;
2055
3154
  /**
2056
3155
  * @deprecated
2057
3156
  */
2058
- endDate: string;
3157
+ endDate?: string;
2059
3158
  options: PrimaryNetworkOptions;
2060
3159
  };
2061
3160
 
@@ -2096,7 +3195,7 @@ type OperationStatusResponse = {
2096
3195
  operationType: OperationType;
2097
3196
  operationStatus: OperationStatus;
2098
3197
  message?: string;
2099
- metadata: TransactionExportMetadata;
3198
+ metadata?: TransactionExportMetadata;
2100
3199
  createdAtTimestamp: number;
2101
3200
  updatedAtTimestamp: number;
2102
3201
  };
@@ -2107,7 +3206,7 @@ declare class OperationsService {
2107
3206
  /**
2108
3207
  * Get operation
2109
3208
  * Gets operation details for the given operation id.
2110
- * @returns OperationStatusResponse
3209
+ * @returns OperationStatusResponse Successful response
2111
3210
  * @throws ApiError
2112
3211
  */
2113
3212
  getOperationResult({ operationId, }: {
@@ -2121,7 +3220,7 @@ declare class OperationsService {
2121
3220
  * Trigger a transaction export operation with given parameters.
2122
3221
  *
2123
3222
  * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2124
- * @returns OperationStatusResponse
3223
+ * @returns OperationStatusResponse Successful response
2125
3224
  * @throws ApiError
2126
3225
  */
2127
3226
  postTransactionExportJob({ requestBody, }: {
@@ -2129,12 +3228,27 @@ declare class OperationsService {
2129
3228
  }): CancelablePromise<OperationStatusResponse>;
2130
3229
  }
2131
3230
 
3231
+ type Blockchain = {
3232
+ createBlockTimestamp: number;
3233
+ createBlockNumber: string;
3234
+ blockchainId: string;
3235
+ vmId: string;
3236
+ subnetId: string;
3237
+ blockchainName: string;
3238
+ /**
3239
+ * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
3240
+ */
3241
+ evmChainId: number;
3242
+ };
3243
+
2132
3244
  declare enum BlockchainIds {
2133
3245
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2134
3246
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2135
3247
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3248
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2136
3249
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2137
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
3250
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3251
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2138
3252
  }
2139
3253
 
2140
3254
  type ChainAddressChainIdMap = {
@@ -2158,16 +3272,31 @@ type DelegatorsDetails = {
2158
3272
  };
2159
3273
 
2160
3274
  type StakingDistribution = {
3275
+ /**
3276
+ * AvalancheGo version for the validator node.
3277
+ */
2161
3278
  version: string;
3279
+ /**
3280
+ * The total amount staked by validators using this version.
3281
+ */
2162
3282
  amountStaked: string;
3283
+ /**
3284
+ * The number of validators using this version.
3285
+ */
2163
3286
  validatorCount: number;
2164
3287
  };
2165
3288
 
2166
3289
  type ValidatorsDetails = {
2167
3290
  validatorCount: number;
2168
3291
  totalAmountStaked: string;
3292
+ /**
3293
+ * Total potential rewards from currently active validations and delegations.
3294
+ */
2169
3295
  estimatedAnnualStakingReward: string;
2170
3296
  stakingDistributionByVersion: Array<StakingDistribution>;
3297
+ /**
3298
+ * Ratio of total active stake amount to the current supply.
3299
+ */
2171
3300
  stakingRatio: string;
2172
3301
  };
2173
3302
 
@@ -2176,15 +3305,6 @@ type GetNetworkDetailsResponse = {
2176
3305
  delegatorDetails: DelegatorsDetails;
2177
3306
  };
2178
3307
 
2179
- type Blockchain = {
2180
- createBlockTimestamp: number;
2181
- createBlockNumber: string;
2182
- blockchainId: string;
2183
- vmId: string;
2184
- subnetId: string;
2185
- blockchainName: string;
2186
- };
2187
-
2188
3308
  type ListBlockchainsResponse = {
2189
3309
  /**
2190
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.
@@ -2219,7 +3339,13 @@ type CompletedDelegatorDetails = {
2219
3339
  delegationFee: string;
2220
3340
  startTimestamp: number;
2221
3341
  endTimestamp: number;
3342
+ /**
3343
+ * Total rewards distributed for the successful delegation.
3344
+ */
2222
3345
  grossReward: string;
3346
+ /**
3347
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3348
+ */
2223
3349
  netReward: string;
2224
3350
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2225
3351
  };
@@ -2237,7 +3363,13 @@ type PendingDelegatorDetails = {
2237
3363
  delegationFee: string;
2238
3364
  startTimestamp: number;
2239
3365
  endTimestamp: number;
3366
+ /**
3367
+ * Estimated total rewards that will be distributed for the successful delegation.
3368
+ */
2240
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
+ */
2241
3373
  estimatedNetReward: string;
2242
3374
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2243
3375
  };
@@ -2258,8 +3390,59 @@ type ListDelegatorDetailsResponse = {
2258
3390
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2259
3391
  };
2260
3392
 
2261
- 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
+
3443
+ type L1ValidatorManagerDetails = {
2262
3444
  blockchainId: string;
3445
+ contractAddress: string;
2263
3446
  };
2264
3447
 
2265
3448
  type SubnetOwnershipInfo = {
@@ -2300,7 +3483,19 @@ type Subnet = {
2300
3483
  * Latest subnet owner details for this Subnet.
2301
3484
  */
2302
3485
  subnetOwnershipInfo: SubnetOwnershipInfo;
2303
- blockchains: Array<BlockchainInfo>;
3486
+ /**
3487
+ * Whether the subnet is an L1 or not.
3488
+ */
3489
+ isL1: boolean;
3490
+ /**
3491
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3492
+ */
3493
+ l1ConversionTransactionHash?: string;
3494
+ /**
3495
+ * L1 validator manager details.
3496
+ */
3497
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3498
+ blockchains: Array<Blockchain>;
2304
3499
  };
2305
3500
 
2306
3501
  type ListSubnetsResponse = {
@@ -2316,6 +3511,29 @@ type BlsCredentials = {
2316
3511
  proofOfPossession: string;
2317
3512
  };
2318
3513
 
3514
+ type Geolocation = {
3515
+ /**
3516
+ * The name of the validator node.
3517
+ */
3518
+ city: string;
3519
+ /**
3520
+ * The city of the validator node.
3521
+ */
3522
+ country: string;
3523
+ /**
3524
+ * The country code of the validator node.
3525
+ */
3526
+ countryCode: string;
3527
+ /**
3528
+ * The latitude of the validator node.
3529
+ */
3530
+ latitude: number;
3531
+ /**
3532
+ * The longitude of the validator node.
3533
+ */
3534
+ longitude: number;
3535
+ };
3536
+
2319
3537
  type Rewards = {
2320
3538
  validationRewardAmount: string;
2321
3539
  delegationRewardAmount: string;
@@ -2347,6 +3565,9 @@ type ActiveValidatorDetails = {
2347
3565
  nodeId: string;
2348
3566
  subnetId: string;
2349
3567
  amountStaked: string;
3568
+ /**
3569
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3570
+ */
2350
3571
  delegationFee?: string;
2351
3572
  startTimestamp: number;
2352
3573
  endTimestamp: number;
@@ -2354,15 +3575,37 @@ type ActiveValidatorDetails = {
2354
3575
  * Present for AddPermissionlessValidatorTx
2355
3576
  */
2356
3577
  blsCredentials?: BlsCredentials;
3578
+ /**
3579
+ * The percentage of this validator's stake amount to the total active stake.
3580
+ */
2357
3581
  stakePercentage: number;
3582
+ /**
3583
+ * The number of delegators linked to the validator.
3584
+ */
2358
3585
  delegatorCount: number;
3586
+ /**
3587
+ * The total amount in nAVAX delegated to the validator.
3588
+ */
2359
3589
  amountDelegated?: string;
3590
+ /**
3591
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3592
+ */
2360
3593
  uptimePerformance: number;
2361
3594
  avalancheGoVersion?: string;
3595
+ /**
3596
+ * The amount of stake in nAVAX that can be delegated to this validator.
3597
+ */
2362
3598
  delegationCapacity?: string;
3599
+ /**
3600
+ * Estimated rewards for the validator if the validation is successful.
3601
+ */
2363
3602
  potentialRewards: Rewards;
2364
3603
  validationStatus: ActiveValidatorDetails.validationStatus;
2365
3604
  validatorHealth: ValidatorHealthDetails;
3605
+ /**
3606
+ * The geographical location of the validator node, if available.
3607
+ */
3608
+ geolocation: Geolocation | null;
2366
3609
  };
2367
3610
  declare namespace ActiveValidatorDetails {
2368
3611
  enum validationStatus {
@@ -2375,6 +3618,9 @@ type CompletedValidatorDetails = {
2375
3618
  nodeId: string;
2376
3619
  subnetId: string;
2377
3620
  amountStaked: string;
3621
+ /**
3622
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3623
+ */
2378
3624
  delegationFee?: string;
2379
3625
  startTimestamp: number;
2380
3626
  endTimestamp: number;
@@ -2383,6 +3629,7 @@ type CompletedValidatorDetails = {
2383
3629
  */
2384
3630
  blsCredentials?: BlsCredentials;
2385
3631
  delegatorCount: number;
3632
+ amountDelegated?: string;
2386
3633
  rewards: Rewards;
2387
3634
  validationStatus: CompletedValidatorDetails.validationStatus;
2388
3635
  };
@@ -2397,6 +3644,9 @@ type PendingValidatorDetails = {
2397
3644
  nodeId: string;
2398
3645
  subnetId: string;
2399
3646
  amountStaked: string;
3647
+ /**
3648
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3649
+ */
2400
3650
  delegationFee?: string;
2401
3651
  startTimestamp: number;
2402
3652
  endTimestamp: number;
@@ -2417,6 +3667,9 @@ type RemovedValidatorDetails = {
2417
3667
  nodeId: string;
2418
3668
  subnetId: string;
2419
3669
  amountStaked: string;
3670
+ /**
3671
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3672
+ */
2420
3673
  delegationFee?: string;
2421
3674
  startTimestamp: number;
2422
3675
  endTimestamp: number;
@@ -2424,7 +3677,13 @@ type RemovedValidatorDetails = {
2424
3677
  * Present for AddPermissionlessValidatorTx
2425
3678
  */
2426
3679
  blsCredentials?: BlsCredentials;
3680
+ /**
3681
+ * The transaction hash that removed the permissioned subnet validator.
3682
+ */
2427
3683
  removeTxHash: string;
3684
+ /**
3685
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3686
+ */
2428
3687
  removeTimestamp: number;
2429
3688
  validationStatus: RemovedValidatorDetails.validationStatus;
2430
3689
  };
@@ -2445,11 +3704,6 @@ type ListValidatorDetailsResponse = {
2445
3704
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2446
3705
  };
2447
3706
 
2448
- declare enum Network {
2449
- MAINNET = "mainnet",
2450
- FUJI = "fuji"
2451
- }
2452
-
2453
3707
  declare enum SortByOption {
2454
3708
  BLOCK_INDEX = "blockIndex",
2455
3709
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2509,6 +3763,7 @@ type XChainAssetDetails = {
2509
3763
  declare enum XChainId {
2510
3764
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2511
3765
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3766
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2512
3767
  X_CHAIN = "x-chain"
2513
3768
  }
2514
3769
 
@@ -2518,7 +3773,7 @@ declare class PrimaryNetworkService {
2518
3773
  /**
2519
3774
  * Get asset details
2520
3775
  * Gets asset details corresponding to the given asset id on the X-Chain.
2521
- * @returns XChainAssetDetails
3776
+ * @returns XChainAssetDetails Successful response
2522
3777
  * @throws ApiError
2523
3778
  */
2524
3779
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2527,7 +3782,7 @@ declare class PrimaryNetworkService {
2527
3782
  */
2528
3783
  blockchainId: XChainId;
2529
3784
  /**
2530
- * Either mainnet or a testnet.
3785
+ * Either mainnet or testnet/fuji.
2531
3786
  */
2532
3787
  network: Network;
2533
3788
  /**
@@ -2538,7 +3793,7 @@ declare class PrimaryNetworkService {
2538
3793
  /**
2539
3794
  * Get chain interactions for addresses
2540
3795
  * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
2541
- * @returns ChainAddressChainIdMapListResponse
3796
+ * @returns ChainAddressChainIdMapListResponse Successful response
2542
3797
  * @throws ApiError
2543
3798
  */
2544
3799
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2547,31 +3802,31 @@ declare class PrimaryNetworkService {
2547
3802
  */
2548
3803
  addresses: string;
2549
3804
  /**
2550
- * Either mainnet or a testnet.
3805
+ * Either mainnet or testnet/fuji.
2551
3806
  */
2552
3807
  network: Network;
2553
3808
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2554
3809
  /**
2555
3810
  * Get network details
2556
3811
  * Gets network details such as validator and delegator stats.
2557
- * @returns GetNetworkDetailsResponse
3812
+ * @returns GetNetworkDetailsResponse Successful response
2558
3813
  * @throws ApiError
2559
3814
  */
2560
3815
  getNetworkDetails({ network, }: {
2561
3816
  /**
2562
- * Either mainnet or a testnet.
3817
+ * Either mainnet or testnet/fuji.
2563
3818
  */
2564
3819
  network: Network;
2565
3820
  }): CancelablePromise<GetNetworkDetailsResponse>;
2566
3821
  /**
2567
3822
  * List blockchains
2568
3823
  * Lists all blockchains registered on the network.
2569
- * @returns ListBlockchainsResponse
3824
+ * @returns ListBlockchainsResponse Successful response
2570
3825
  * @throws ApiError
2571
3826
  */
2572
3827
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2573
3828
  /**
2574
- * Either mainnet or a testnet.
3829
+ * Either mainnet or testnet/fuji.
2575
3830
  */
2576
3831
  network: Network;
2577
3832
  /**
@@ -2587,15 +3842,31 @@ declare class PrimaryNetworkService {
2587
3842
  */
2588
3843
  sortOrder?: SortOrder;
2589
3844
  }): CancelablePromise<ListBlockchainsResponse>;
3845
+ /**
3846
+ * Get blockchain details by ID
3847
+ * Get details of the blockchain registered on the network.
3848
+ * @returns Blockchain Successful response
3849
+ * @throws ApiError
3850
+ */
3851
+ getBlockchainById({ blockchainId, network, }: {
3852
+ /**
3853
+ * The blockchain ID of the blockchain to retrieve.
3854
+ */
3855
+ blockchainId: string;
3856
+ /**
3857
+ * Either mainnet or testnet/fuji.
3858
+ */
3859
+ network: Network;
3860
+ }): CancelablePromise<Blockchain>;
2590
3861
  /**
2591
3862
  * List subnets
2592
3863
  * Lists all subnets registered on the network.
2593
- * @returns ListSubnetsResponse
3864
+ * @returns ListSubnetsResponse Successful response
2594
3865
  * @throws ApiError
2595
3866
  */
2596
3867
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2597
3868
  /**
2598
- * Either mainnet or a testnet.
3869
+ * Either mainnet or testnet/fuji.
2599
3870
  */
2600
3871
  network: Network;
2601
3872
  /**
@@ -2614,12 +3885,12 @@ declare class PrimaryNetworkService {
2614
3885
  /**
2615
3886
  * Get Subnet details by ID
2616
3887
  * Get details of the Subnet registered on the network.
2617
- * @returns Subnet
3888
+ * @returns Subnet Successful response
2618
3889
  * @throws ApiError
2619
3890
  */
2620
3891
  getSubnetById({ network, subnetId, }: {
2621
3892
  /**
2622
- * Either mainnet or a testnet.
3893
+ * Either mainnet or testnet/fuji.
2623
3894
  */
2624
3895
  network: Network;
2625
3896
  /**
@@ -2629,13 +3900,13 @@ declare class PrimaryNetworkService {
2629
3900
  }): CancelablePromise<Subnet>;
2630
3901
  /**
2631
3902
  * List validators
2632
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2633
- * @returns ListValidatorDetailsResponse
3903
+ * 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.
3904
+ * @returns ListValidatorDetailsResponse Successful response
2634
3905
  * @throws ApiError
2635
3906
  */
2636
3907
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2637
3908
  /**
2638
- * Either mainnet or a testnet.
3909
+ * Either mainnet or testnet/fuji.
2639
3910
  */
2640
3911
  network: Network;
2641
3912
  /**
@@ -2647,7 +3918,7 @@ declare class PrimaryNetworkService {
2647
3918
  */
2648
3919
  pageSize?: number;
2649
3920
  /**
2650
- * A comma separated list of node ids to filter by.
3921
+ * A comma separated list of node ids to filter by. Supports substring matching.
2651
3922
  */
2652
3923
  nodeIds?: string;
2653
3924
  /**
@@ -2704,12 +3975,12 @@ declare class PrimaryNetworkService {
2704
3975
  /**
2705
3976
  * Get single validator details
2706
3977
  * List validator details for a single validator. Filterable by validation status.
2707
- * @returns ListValidatorDetailsResponse
3978
+ * @returns ListValidatorDetailsResponse Successful response
2708
3979
  * @throws ApiError
2709
3980
  */
2710
3981
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2711
3982
  /**
2712
- * Either mainnet or a testnet.
3983
+ * Either mainnet or testnet/fuji.
2713
3984
  */
2714
3985
  network: Network;
2715
3986
  /**
@@ -2736,12 +4007,12 @@ declare class PrimaryNetworkService {
2736
4007
  /**
2737
4008
  * List delegators
2738
4009
  * Lists details for delegators.
2739
- * @returns ListDelegatorDetailsResponse
4010
+ * @returns ListDelegatorDetailsResponse Successful response
2740
4011
  * @throws ApiError
2741
4012
  */
2742
4013
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
4014
  /**
2744
- * Either mainnet or a testnet.
4015
+ * Either mainnet or testnet/fuji.
2745
4016
  */
2746
4017
  network: Network;
2747
4018
  /**
@@ -2769,14 +4040,49 @@ declare class PrimaryNetworkService {
2769
4040
  */
2770
4041
  nodeIds?: string;
2771
4042
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4043
+ /**
4044
+ * List L1 validators
4045
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4046
+ * @returns ListL1ValidatorsResponse Successful response
4047
+ * @throws ApiError
4048
+ */
4049
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4050
+ /**
4051
+ * Either mainnet or testnet/fuji.
4052
+ */
4053
+ network: Network;
4054
+ /**
4055
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4056
+ */
4057
+ pageToken?: string;
4058
+ /**
4059
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4060
+ */
4061
+ pageSize?: number;
4062
+ /**
4063
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4064
+ */
4065
+ l1ValidationId?: string;
4066
+ includeInactiveL1Validators?: boolean;
4067
+ /**
4068
+ * A valid node ID in format 'NodeID-HASH'.
4069
+ */
4070
+ nodeId?: string;
4071
+ /**
4072
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4073
+ */
4074
+ subnetId?: any;
4075
+ }): CancelablePromise<ListL1ValidatorsResponse>;
2772
4076
  }
2773
4077
 
2774
4078
  declare enum BlockchainId {
2775
4079
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2776
4080
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2777
4081
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4082
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2778
4083
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2779
4084
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4085
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2780
4086
  P_CHAIN = "p-chain",
2781
4087
  X_CHAIN = "x-chain",
2782
4088
  C_CHAIN = "c-chain"
@@ -2813,11 +4119,6 @@ type CChainAtomicBalances = {
2813
4119
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2814
4120
  };
2815
4121
 
2816
- declare enum PrimaryNetwork {
2817
- MAINNET = "mainnet",
2818
- FUJI = "fuji"
2819
- }
2820
-
2821
4122
  declare enum PrimaryNetworkChainName {
2822
4123
  P_CHAIN = "p-chain",
2823
4124
  X_CHAIN = "x-chain",
@@ -2826,7 +4127,7 @@ declare enum PrimaryNetworkChainName {
2826
4127
 
2827
4128
  type PrimaryNetworkChainInfo = {
2828
4129
  chainName: PrimaryNetworkChainName;
2829
- network: PrimaryNetwork;
4130
+ network: Network;
2830
4131
  };
2831
4132
 
2832
4133
  type ListCChainAtomicBalancesResponse = {
@@ -2978,7 +4279,7 @@ declare class PrimaryNetworkBalancesService {
2978
4279
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
2979
4280
  *
2980
4281
  * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
2981
- * @returns any
4282
+ * @returns any Successful response
2982
4283
  * @throws ApiError
2983
4284
  */
2984
4285
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -2987,7 +4288,7 @@ declare class PrimaryNetworkBalancesService {
2987
4288
  */
2988
4289
  blockchainId: BlockchainId;
2989
4290
  /**
2990
- * Either mainnet or a testnet.
4291
+ * Either mainnet or testnet/fuji.
2991
4292
  */
2992
4293
  network: Network;
2993
4294
  /**
@@ -3018,6 +4319,8 @@ type GetPrimaryNetworkBlockResponse = {
3018
4319
  txCount: number;
3019
4320
  transactions: Array<string>;
3020
4321
  blockSizeBytes: number;
4322
+ l1ValidatorsAccruedFees?: number;
4323
+ activeL1Validators?: number;
3021
4324
  currentSupply?: string;
3022
4325
  proposerDetails?: ProposerDetails;
3023
4326
  };
@@ -3031,6 +4334,8 @@ type PrimaryNetworkBlock = {
3031
4334
  txCount: number;
3032
4335
  transactions: Array<string>;
3033
4336
  blockSizeBytes: number;
4337
+ l1ValidatorsAccruedFees?: number;
4338
+ activeL1Validators?: number;
3034
4339
  currentSupply?: string;
3035
4340
  proposerDetails?: ProposerDetails;
3036
4341
  };
@@ -3050,7 +4355,7 @@ declare class PrimaryNetworkBlocksService {
3050
4355
  /**
3051
4356
  * Get block
3052
4357
  * Gets a block by block height or block hash on one of the Primary Network chains.
3053
- * @returns GetPrimaryNetworkBlockResponse
4358
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3054
4359
  * @throws ApiError
3055
4360
  */
3056
4361
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3059,7 +4364,7 @@ declare class PrimaryNetworkBlocksService {
3059
4364
  */
3060
4365
  blockchainId: BlockchainId;
3061
4366
  /**
3062
- * Either mainnet or a testnet.
4367
+ * Either mainnet or testnet/fuji.
3063
4368
  */
3064
4369
  network: Network;
3065
4370
  /**
@@ -3070,22 +4375,30 @@ declare class PrimaryNetworkBlocksService {
3070
4375
  /**
3071
4376
  * List blocks proposed by node
3072
4377
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3073
- * @returns ListPrimaryNetworkBlocksResponse
4378
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3074
4379
  * @throws ApiError
3075
4380
  */
3076
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4381
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3077
4382
  /**
3078
4383
  * A primary network blockchain id or alias.
3079
4384
  */
3080
4385
  blockchainId: BlockchainId;
3081
4386
  /**
3082
- * Either mainnet or a testnet.
4387
+ * Either mainnet or testnet/fuji.
3083
4388
  */
3084
4389
  network: Network;
3085
4390
  /**
3086
4391
  * A primary network (P or X chain) nodeId.
3087
4392
  */
3088
4393
  nodeId: string;
4394
+ /**
4395
+ * Query param for retrieving items after a specific timestamp.
4396
+ */
4397
+ startTimestamp?: number;
4398
+ /**
4399
+ * Query param for retrieving items before a specific timestamp.
4400
+ */
4401
+ endTimestamp?: number;
3089
4402
  /**
3090
4403
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3091
4404
  */
@@ -3098,18 +4411,26 @@ declare class PrimaryNetworkBlocksService {
3098
4411
  /**
3099
4412
  * List latest blocks
3100
4413
  * Lists latest blocks on one of the Primary Network chains.
3101
- * @returns ListPrimaryNetworkBlocksResponse
4414
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3102
4415
  * @throws ApiError
3103
4416
  */
3104
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4417
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3105
4418
  /**
3106
4419
  * A primary network blockchain id or alias.
3107
4420
  */
3108
4421
  blockchainId: BlockchainId;
3109
4422
  /**
3110
- * Either mainnet or a testnet.
4423
+ * Either mainnet or testnet/fuji.
3111
4424
  */
3112
4425
  network: Network;
4426
+ /**
4427
+ * Query param for retrieving items after a specific timestamp.
4428
+ */
4429
+ startTimestamp?: number;
4430
+ /**
4431
+ * Query param for retrieving items before a specific timestamp.
4432
+ */
4433
+ endTimestamp?: number;
3113
4434
  /**
3114
4435
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3115
4436
  */
@@ -3236,12 +4557,12 @@ declare class PrimaryNetworkRewardsService {
3236
4557
  /**
3237
4558
  * List pending rewards
3238
4559
  * Lists pending rewards on the Primary Network for the supplied addresses.
3239
- * @returns ListPendingRewardsResponse
4560
+ * @returns ListPendingRewardsResponse Successful response
3240
4561
  * @throws ApiError
3241
4562
  */
3242
4563
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3243
4564
  /**
3244
- * Either mainnet or a testnet.
4565
+ * Either mainnet or testnet/fuji.
3245
4566
  */
3246
4567
  network: Network;
3247
4568
  /**
@@ -3268,12 +4589,12 @@ declare class PrimaryNetworkRewardsService {
3268
4589
  /**
3269
4590
  * List historical rewards
3270
4591
  * Lists historical rewards on the Primary Network for the supplied addresses.
3271
- * @returns ListHistoricalRewardsResponse
4592
+ * @returns ListHistoricalRewardsResponse Successful response
3272
4593
  * @throws ApiError
3273
4594
  */
3274
4595
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3275
4596
  /**
3276
- * Either mainnet or a testnet.
4597
+ * Either mainnet or testnet/fuji.
3277
4598
  */
3278
4599
  network: Network;
3279
4600
  /**
@@ -3519,6 +4840,32 @@ type ListCChainAtomicTransactionsResponse = {
3519
4840
  chainInfo: PrimaryNetworkChainInfo;
3520
4841
  };
3521
4842
 
4843
+ type L1ValidatorDetailsTransaction = {
4844
+ /**
4845
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4846
+ */
4847
+ validationId: string;
4848
+ /**
4849
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4850
+ */
4851
+ validationIdHex: string;
4852
+ nodeId: string;
4853
+ subnetId: string;
4854
+ /**
4855
+ * 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
4856
+ */
4857
+ weight: number;
4858
+ /**
4859
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4860
+ */
4861
+ remainingBalance: number;
4862
+ /**
4863
+ * 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
4864
+ */
4865
+ balanceChange?: number;
4866
+ blsCredentials?: Record<string, any>;
4867
+ };
4868
+
3522
4869
  declare enum PChainTransactionType {
3523
4870
  ADD_VALIDATOR_TX = "AddValidatorTx",
3524
4871
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3535,9 +4882,17 @@ declare enum PChainTransactionType {
3535
4882
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3536
4883
  BASE_TX = "BaseTx",
3537
4884
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4885
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4886
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4887
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4888
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4889
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3538
4890
  UNKNOWN = "UNKNOWN"
3539
4891
  }
3540
4892
 
4893
+ /**
4894
+ * Indicates whether the UTXO is staked or transferable
4895
+ */
3541
4896
  declare enum UtxoType {
3542
4897
  STAKE = "STAKE",
3543
4898
  TRANSFER = "TRANSFER"
@@ -3575,16 +4930,43 @@ type PChainUtxo = {
3575
4930
  assetId: string;
3576
4931
  blockNumber: string;
3577
4932
  blockTimestamp: number;
4933
+ /**
4934
+ * Block height in which the transaction consuming this UTXO was included
4935
+ */
3578
4936
  consumingBlockNumber?: string;
4937
+ /**
4938
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4939
+ */
3579
4940
  consumingBlockTimestamp?: number;
4941
+ /**
4942
+ * Timestamp in seconds after which this UTXO can be consumed
4943
+ */
3580
4944
  platformLocktime?: number;
4945
+ /**
4946
+ * The index of the UTXO in the transaction
4947
+ */
3581
4948
  outputIndex: number;
3582
4949
  rewardType?: RewardType;
4950
+ /**
4951
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4952
+ */
3583
4953
  stakeableLocktime?: number;
3584
4954
  staked?: boolean;
4955
+ /**
4956
+ * The minimum number of signatures required to spend this UTXO
4957
+ */
3585
4958
  threshold?: number;
4959
+ /**
4960
+ * The hash of the transaction that created this UTXO
4961
+ */
3586
4962
  txHash: string;
4963
+ /**
4964
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4965
+ */
3587
4966
  utxoEndTimestamp?: number;
4967
+ /**
4968
+ * Timestamp in seconds at which the staked UTXO was locked.
4969
+ */
3588
4970
  utxoStartTimestamp?: number;
3589
4971
  utxoType: UtxoType;
3590
4972
  };
@@ -3599,9 +4981,18 @@ type PChainTransaction = {
3599
4981
  * The block finality timestamp.
3600
4982
  */
3601
4983
  blockTimestamp: number;
4984
+ /**
4985
+ * The height of the block in which the transaction was included
4986
+ */
3602
4987
  blockNumber: string;
3603
4988
  blockHash: string;
4989
+ /**
4990
+ * The consumed UTXOs of the transaction
4991
+ */
3604
4992
  consumedUtxos: Array<PChainUtxo>;
4993
+ /**
4994
+ * The newly created UTXOs of the transaction
4995
+ */
3605
4996
  emittedUtxos: Array<PChainUtxo>;
3606
4997
  /**
3607
4998
  * Source chain for an atomic transaction.
@@ -3612,17 +5003,21 @@ type PChainTransaction = {
3612
5003
  */
3613
5004
  destinationChain?: string;
3614
5005
  /**
3615
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5006
+ * 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
3616
5007
  */
3617
5008
  value: Array<AssetAmount>;
3618
5009
  /**
3619
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5010
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
3620
5011
  */
3621
5012
  amountBurned: Array<AssetAmount>;
3622
5013
  /**
3623
5014
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3624
5015
  */
3625
5016
  amountStaked: Array<AssetAmount>;
5017
+ /**
5018
+ * 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.
5019
+ */
5020
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3626
5021
  /**
3627
5022
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3628
5023
  */
@@ -3632,11 +5027,11 @@ type PChainTransaction = {
3632
5027
  */
3633
5028
  endTimestamp?: number;
3634
5029
  /**
3635
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5030
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3636
5031
  */
3637
5032
  delegationFeePercent?: string;
3638
5033
  /**
3639
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5034
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3640
5035
  */
3641
5036
  nodeId?: string;
3642
5037
  /**
@@ -3644,14 +5039,25 @@ type PChainTransaction = {
3644
5039
  */
3645
5040
  subnetId?: string;
3646
5041
  /**
3647
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5042
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5043
+ */
5044
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5045
+ /**
5046
+ * 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
5047
+ */
5048
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5049
+ /**
5050
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3648
5051
  */
3649
5052
  estimatedReward?: string;
5053
+ /**
5054
+ * Reward transaction hash for the completed validations or delegations
5055
+ */
3650
5056
  rewardTxHash?: string;
3651
5057
  rewardAddresses?: Array<string>;
3652
5058
  memo?: string;
3653
5059
  /**
3654
- * Present for RewardValidatorTx
5060
+ * Staking transaction corresponding to the RewardValidatorTx
3655
5061
  */
3656
5062
  stakingTxHash?: string;
3657
5063
  /**
@@ -3659,7 +5065,7 @@ type PChainTransaction = {
3659
5065
  */
3660
5066
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3661
5067
  /**
3662
- * Present for AddPermissionlessValidatorTx
5068
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3663
5069
  */
3664
5070
  blsCredentials?: BlsCredentials;
3665
5071
  };
@@ -3844,6 +5250,11 @@ declare enum PrimaryNetworkTxType {
3844
5250
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3845
5251
  BASE_TX = "BaseTx",
3846
5252
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5253
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5254
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5255
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5256
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5257
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3847
5258
  UNKNOWN = "UNKNOWN",
3848
5259
  CREATE_ASSET_TX = "CreateAssetTx",
3849
5260
  OPERATION_TX = "OperationTx"
@@ -3855,7 +5266,7 @@ declare class PrimaryNetworkTransactionsService {
3855
5266
  /**
3856
5267
  * Get transaction
3857
5268
  * Gets the details of a single transaction on one of the Primary Network chains.
3858
- * @returns any
5269
+ * @returns any Successful response
3859
5270
  * @throws ApiError
3860
5271
  */
3861
5272
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -3864,7 +5275,7 @@ declare class PrimaryNetworkTransactionsService {
3864
5275
  */
3865
5276
  blockchainId: BlockchainId;
3866
5277
  /**
3867
- * Either mainnet or a testnet.
5278
+ * Either mainnet or testnet/fuji.
3868
5279
  */
3869
5280
  network: Network;
3870
5281
  /**
@@ -3878,23 +5289,26 @@ declare class PrimaryNetworkTransactionsService {
3878
5289
  *
3879
5290
  * 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.
3880
5291
  *
5292
+ * 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.
5293
+ *
3881
5294
  * 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.
3882
- * @returns any
5295
+ * @returns any Successful response
3883
5296
  * @throws ApiError
3884
5297
  */
3885
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5298
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3886
5299
  /**
3887
5300
  * A primary network blockchain id or alias.
3888
5301
  */
3889
5302
  blockchainId: BlockchainId;
3890
5303
  /**
3891
- * Either mainnet or a testnet.
5304
+ * Either mainnet or testnet/fuji.
3892
5305
  */
3893
5306
  network: Network;
3894
5307
  /**
3895
- * 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".
5308
+ * 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.
3896
5309
  */
3897
5310
  addresses?: string;
5311
+ l1ValidationId?: string;
3898
5312
  /**
3899
5313
  * Query param for filtering items based on transaction types.
3900
5314
  */
@@ -3923,7 +5337,7 @@ declare class PrimaryNetworkTransactionsService {
3923
5337
  /**
3924
5338
  * List staking transactions
3925
5339
  * Lists active staking transactions on the P-Chain for the supplied addresses.
3926
- * @returns ListPChainTransactionsResponse
5340
+ * @returns ListPChainTransactionsResponse Successful response
3927
5341
  * @throws ApiError
3928
5342
  */
3929
5343
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -3932,7 +5346,7 @@ declare class PrimaryNetworkTransactionsService {
3932
5346
  */
3933
5347
  blockchainId: PChainId;
3934
5348
  /**
3935
- * Either mainnet or a testnet.
5349
+ * Either mainnet or testnet/fuji.
3936
5350
  */
3937
5351
  network: Network;
3938
5352
  /**
@@ -3967,7 +5381,7 @@ declare class PrimaryNetworkTransactionsService {
3967
5381
  /**
3968
5382
  * List asset transactions
3969
5383
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
3970
- * @returns ListXChainTransactionsResponse
5384
+ * @returns ListXChainTransactionsResponse Successful response
3971
5385
  * @throws ApiError
3972
5386
  */
3973
5387
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -3976,7 +5390,7 @@ declare class PrimaryNetworkTransactionsService {
3976
5390
  */
3977
5391
  blockchainId: XChainId;
3978
5392
  /**
3979
- * Either mainnet or a testnet.
5393
+ * Either mainnet or testnet/fuji.
3980
5394
  */
3981
5395
  network: Network;
3982
5396
  /**
@@ -4030,7 +5444,7 @@ declare class PrimaryNetworkUtxOsService {
4030
5444
  /**
4031
5445
  * List UTXOs
4032
5446
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4033
- * @returns any
5447
+ * @returns any Successful response
4034
5448
  * @throws ApiError
4035
5449
  */
4036
5450
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4039,7 +5453,7 @@ declare class PrimaryNetworkUtxOsService {
4039
5453
  */
4040
5454
  blockchainId: BlockchainId;
4041
5455
  /**
4042
- * Either mainnet or a testnet.
5456
+ * Either mainnet or testnet/fuji.
4043
5457
  */
4044
5458
  network: Network;
4045
5459
  /**
@@ -4095,7 +5509,7 @@ declare class PrimaryNetworkVerticesService {
4095
5509
  /**
4096
5510
  * List vertices
4097
5511
  * Lists latest vertices on the X-Chain.
4098
- * @returns ListXChainVerticesResponse
5512
+ * @returns ListXChainVerticesResponse Successful response
4099
5513
  * @throws ApiError
4100
5514
  */
4101
5515
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4104,7 +5518,7 @@ declare class PrimaryNetworkVerticesService {
4104
5518
  */
4105
5519
  blockchainId: XChainId;
4106
5520
  /**
4107
- * Either mainnet or a testnet.
5521
+ * Either mainnet or testnet/fuji.
4108
5522
  */
4109
5523
  network: Network;
4110
5524
  /**
@@ -4119,7 +5533,7 @@ declare class PrimaryNetworkVerticesService {
4119
5533
  /**
4120
5534
  * Get vertex
4121
5535
  * Gets a single vertex on the X-Chain.
4122
- * @returns XChainVertex
5536
+ * @returns XChainVertex Successful response
4123
5537
  * @throws ApiError
4124
5538
  */
4125
5539
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4132,14 +5546,14 @@ declare class PrimaryNetworkVerticesService {
4132
5546
  */
4133
5547
  blockchainId: XChainId;
4134
5548
  /**
4135
- * Either mainnet or a testnet.
5549
+ * Either mainnet or testnet/fuji.
4136
5550
  */
4137
5551
  network: Network;
4138
5552
  }): CancelablePromise<XChainVertex>;
4139
5553
  /**
4140
5554
  * List vertices by height
4141
5555
  * Lists vertices at the given vertex height on the X-Chain.
4142
- * @returns ListXChainVerticesResponse
5556
+ * @returns ListXChainVerticesResponse Successful response
4143
5557
  * @throws ApiError
4144
5558
  */
4145
5559
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4152,7 +5566,7 @@ declare class PrimaryNetworkVerticesService {
4152
5566
  */
4153
5567
  blockchainId: XChainId;
4154
5568
  /**
4155
- * Either mainnet or a testnet.
5569
+ * Either mainnet or testnet/fuji.
4156
5570
  */
4157
5571
  network: Network;
4158
5572
  /**
@@ -4170,47 +5584,49 @@ declare class PrimaryNetworkVerticesService {
4170
5584
  }): CancelablePromise<ListXChainVerticesResponse>;
4171
5585
  }
4172
5586
 
4173
- type RpcErrorDto = {
4174
- code: number;
4175
- message: string;
4176
- data?: Record<string, any>;
4177
- };
4178
-
4179
- type RpcErrorResponseDto = {
4180
- jsonrpc: string;
4181
- id?: (string | number);
4182
- error: RpcErrorDto;
4183
- };
4184
-
4185
- type RpcRequestBodyDto = {
4186
- method: string;
4187
- params?: Record<string, any>;
4188
- id?: (string | number);
4189
- jsonrpc?: string;
5587
+ type SignatureAggregationResponse = {
5588
+ signedMessage: string;
4190
5589
  };
4191
5590
 
4192
- type RpcSuccessResponseDto = {
4193
- jsonrpc: string;
4194
- id?: (string | number);
4195
- result: Record<string, any>;
5591
+ type SignatureAggregatorRequest = {
5592
+ message: string;
5593
+ justification?: string;
5594
+ signingSubnetId?: string;
5595
+ quorumPercentage?: number;
4196
5596
  };
4197
5597
 
4198
- declare class RpcService {
5598
+ declare class SignatureAggregatorService {
4199
5599
  readonly httpRequest: BaseHttpRequest;
4200
5600
  constructor(httpRequest: BaseHttpRequest);
4201
5601
  /**
4202
- * Calls JSON-RPC method
4203
- * Calls JSON-RPC method.
4204
- * @returns any
5602
+ * Aggregate Signatures
5603
+ * Aggregates Signatures for a Warp message from Subnet validators.
5604
+ * @returns SignatureAggregationResponse Successful response
4205
5605
  * @throws ApiError
4206
5606
  */
4207
- rpc({ chainId, requestBody, }: {
5607
+ aggregateSignatures({ network, requestBody, }: {
4208
5608
  /**
4209
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5609
+ * Either mainnet or testnet/fuji.
4210
5610
  */
4211
- chainId: string;
4212
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4213
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5611
+ network: Network;
5612
+ requestBody: SignatureAggregatorRequest;
5613
+ }): CancelablePromise<SignatureAggregationResponse>;
5614
+ /**
5615
+ * Get Aggregated Signatures
5616
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5617
+ * @returns SignatureAggregationResponse Successful response
5618
+ * @throws ApiError
5619
+ */
5620
+ getAggregatedSignatures({ network, txHash, }: {
5621
+ /**
5622
+ * Either mainnet or testnet/fuji.
5623
+ */
5624
+ network: Network;
5625
+ /**
5626
+ * A primary network (P or X chain) transaction hash.
5627
+ */
5628
+ txHash: string;
5629
+ }): CancelablePromise<SignatureAggregationResponse>;
4214
5630
  }
4215
5631
 
4216
5632
  type TeleporterDestinationTransaction = {
@@ -4351,9 +5767,11 @@ declare class TeleporterService {
4351
5767
  readonly httpRequest: BaseHttpRequest;
4352
5768
  constructor(httpRequest: BaseHttpRequest);
4353
5769
  /**
4354
- * Get a teleporter message
4355
- * Gets a teleporter message by message ID.
4356
- * @returns any
5770
+ * @deprecated
5771
+ * **[Deprecated]** Gets a teleporter message by message ID.
5772
+ *
5773
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
5774
+ * @returns any Successful response
4357
5775
  * @throws ApiError
4358
5776
  */
4359
5777
  getTeleporterMessage({ messageId, }: {
@@ -4363,12 +5781,14 @@ declare class TeleporterService {
4363
5781
  messageId: string;
4364
5782
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4365
5783
  /**
4366
- * List teleporter messages
4367
- * Lists teleporter messages. Ordered by timestamp in descending order.
4368
- * @returns ListTeleporterMessagesResponse
5784
+ * @deprecated
5785
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5786
+ *
5787
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
5788
+ * @returns ListTeleporterMessagesResponse Successful response
4369
5789
  * @throws ApiError
4370
5790
  */
4371
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
5791
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
4372
5792
  /**
4373
5793
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4374
5794
  */
@@ -4385,6 +5805,10 @@ declare class TeleporterService {
4385
5805
  * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4386
5806
  */
4387
5807
  destinationBlockchainId?: string;
5808
+ /**
5809
+ * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
5810
+ */
5811
+ blockchainId?: string;
4388
5812
  /**
4389
5813
  * The address of the recipient of the teleporter message.
4390
5814
  */
@@ -4394,9 +5818,35 @@ declare class TeleporterService {
4394
5818
  */
4395
5819
  from?: string;
4396
5820
  /**
4397
- * mainnet or testnet.
5821
+ * Either mainnet or testnet/fuji.
5822
+ */
5823
+ network?: Network;
5824
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5825
+ /**
5826
+ * @deprecated
5827
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5828
+ *
5829
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
5830
+ * @returns ListTeleporterMessagesResponse Successful response
5831
+ * @throws ApiError
5832
+ */
5833
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5834
+ /**
5835
+ * An EVM address.
5836
+ */
5837
+ address: string;
5838
+ /**
5839
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5840
+ */
5841
+ pageToken?: string;
5842
+ /**
5843
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5844
+ */
5845
+ pageSize?: number;
5846
+ /**
5847
+ * Either mainnet or testnet/fuji.
4398
5848
  */
4399
- network?: NetworkType;
5849
+ network?: Network;
4400
5850
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4401
5851
  }
4402
5852
 
@@ -4404,7 +5854,7 @@ type AddressesChangeRequest = {
4404
5854
  /**
4405
5855
  * Ethereum address(es) for the address_activity event type
4406
5856
  */
4407
- addresses: Array<any[]>;
5857
+ addresses: Array<string>;
4408
5858
  };
4409
5859
 
4410
5860
  type AddressActivityMetadata = {
@@ -4418,17 +5868,55 @@ type AddressActivityMetadata = {
4418
5868
  eventSignatures?: Array<string>;
4419
5869
  };
4420
5870
 
4421
- declare enum EventType {
4422
- ADDRESS_ACTIVITY = "address_activity"
5871
+ declare enum PrimaryNetworkType {
5872
+ MAINNET = "mainnet",
5873
+ FUJI = "fuji"
4423
5874
  }
4424
5875
 
4425
- type CreateWebhookRequest = {
5876
+ type EVMAddressActivityRequest = {
5877
+ eventType: EVMAddressActivityRequest.eventType;
4426
5878
  url: string;
4427
5879
  chainId: string;
4428
- eventType: EventType;
4429
- metadata: AddressActivityMetadata;
5880
+ network?: PrimaryNetworkType;
4430
5881
  name?: string;
4431
5882
  description?: string;
5883
+ /**
5884
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5885
+ */
5886
+ includeInternalTxs?: boolean;
5887
+ /**
5888
+ * Whether to include logs in the webhook payload.
5889
+ */
5890
+ includeLogs?: boolean;
5891
+ metadata: AddressActivityMetadata;
5892
+ };
5893
+ declare namespace EVMAddressActivityRequest {
5894
+ enum eventType {
5895
+ ADDRESS_ACTIVITY = "address_activity"
5896
+ }
5897
+ }
5898
+
5899
+ declare enum EventType {
5900
+ ADDRESS_ACTIVITY = "address_activity",
5901
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5902
+ VALIDATOR_ACTIVITY = "validator_activity"
5903
+ }
5904
+
5905
+ declare enum WebhookStatusType {
5906
+ ACTIVE = "active",
5907
+ INACTIVE = "inactive"
5908
+ }
5909
+
5910
+ type EVMAddressActivityResponse = {
5911
+ id: string;
5912
+ eventType: EventType;
5913
+ url: string;
5914
+ chainId: string;
5915
+ status: WebhookStatusType;
5916
+ createdAt: number;
5917
+ name: string;
5918
+ description: string;
5919
+ metadata: AddressActivityMetadata;
4432
5920
  /**
4433
5921
  * Whether to include traces in the webhook payload.
4434
5922
  */
@@ -4448,38 +5936,134 @@ type ListWebhookAddressesResponse = {
4448
5936
  totalAddresses: number;
4449
5937
  };
4450
5938
 
4451
- declare enum WebhookStatusType {
4452
- ACTIVE = "active",
4453
- INACTIVE = "inactive"
5939
+ /**
5940
+ * The type of key for platform activity depending on the event type
5941
+ */
5942
+ declare enum PlatformActivityKeyType {
5943
+ ADDRESSES = "addresses",
5944
+ NODE_ID = "nodeId",
5945
+ SUBNET_ID = "subnetId"
5946
+ }
5947
+
5948
+ /**
5949
+ * Array of address activity sub-event types
5950
+ */
5951
+ declare enum PlatformAddressActivitySubEventType {
5952
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5953
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
5954
+ REWARD_DISTRIBUTION = "reward_distribution"
5955
+ }
5956
+
5957
+ type PlatformActivitySubEvents = {
5958
+ /**
5959
+ * Array of validator activity sub-event types
5960
+ */
5961
+ validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5962
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5963
+ };
5964
+
5965
+ /**
5966
+ * Type of balance to monitor
5967
+ */
5968
+ declare enum CommonBalanceType {
5969
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5970
+ UNLOCKED_STAKED = "unlockedStaked",
5971
+ LOCKED_PLATFORM = "lockedPlatform",
5972
+ LOCKED_STAKEABLE = "lockedStakeable",
5973
+ LOCKED_STAKED = "lockedStaked",
5974
+ PENDING_STAKED = "pendingStaked",
5975
+ UNLOCKED = "unlocked",
5976
+ LOCKED = "locked",
5977
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5978
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
4454
5979
  }
4455
5980
 
4456
- type WebhookResponse = {
5981
+ type PlatformBalanceThresholdFilter = {
5982
+ balanceType: CommonBalanceType;
5983
+ /**
5984
+ * Threshold for balance corresponding to balanceType in nAVAX
5985
+ */
5986
+ balanceThreshold: string;
5987
+ };
5988
+
5989
+ type PlatformActivityMetadata = {
5990
+ keyType: PlatformActivityKeyType;
5991
+ /**
5992
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
5993
+ */
5994
+ keys: Array<string>;
5995
+ /**
5996
+ * Sub-events to monitor
5997
+ */
5998
+ subEvents?: PlatformActivitySubEvents;
5999
+ /**
6000
+ * Array of hexadecimal strings of the event signatures.
6001
+ */
6002
+ eventSignatures?: Array<string>;
6003
+ /**
6004
+ * Array of node IDs to filter the events
6005
+ */
6006
+ nodeIds?: Array<string>;
6007
+ /**
6008
+ * Array of subnet IDs to filter the events
6009
+ */
6010
+ subnetIds?: Array<string>;
6011
+ /**
6012
+ * Balance threshold filter
6013
+ */
6014
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
6015
+ /**
6016
+ * L1 validator fee balance threshold in nAVAX
6017
+ */
6018
+ l1ValidatorFeeBalanceThreshold?: string;
6019
+ };
6020
+
6021
+ type PlatformActivityResponse = {
4457
6022
  id: string;
4458
6023
  eventType: EventType;
4459
- metadata: AddressActivityMetadata;
6024
+ url: string;
6025
+ chainId: string;
6026
+ status: WebhookStatusType;
6027
+ createdAt: number;
6028
+ name: string;
6029
+ description: string;
6030
+ metadata: PlatformActivityMetadata;
6031
+ };
6032
+
6033
+ type ListWebhooksResponse = {
4460
6034
  /**
4461
- * Whether to include traces in the webhook payload.
6035
+ * 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.
6036
+ */
6037
+ nextPageToken?: string;
6038
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6039
+ };
6040
+
6041
+ type PlatformActivityRequest = {
6042
+ eventType: PlatformActivityRequest.eventType;
6043
+ url: string;
6044
+ chainId: string;
6045
+ network?: PrimaryNetworkType;
6046
+ name?: string;
6047
+ description?: string;
6048
+ /**
6049
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4462
6050
  */
4463
6051
  includeInternalTxs?: boolean;
4464
6052
  /**
4465
6053
  * Whether to include logs in the webhook payload.
4466
6054
  */
4467
6055
  includeLogs?: boolean;
4468
- url: string;
4469
- chainId: string;
4470
- status: WebhookStatusType;
4471
- createdAt: number;
4472
- name: string;
4473
- description: string;
4474
- };
4475
-
4476
- type ListWebhooksResponse = {
4477
6056
  /**
4478
- * 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.
6057
+ * Metadata for platform activity
4479
6058
  */
4480
- nextPageToken?: string;
4481
- webhooks: Array<WebhookResponse>;
6059
+ metadata: PlatformActivityMetadata;
4482
6060
  };
6061
+ declare namespace PlatformActivityRequest {
6062
+ enum eventType {
6063
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6064
+ VALIDATOR_ACTIVITY = "validator_activity"
6065
+ }
6066
+ }
4483
6067
 
4484
6068
  type SharedSecretsResponse = {
4485
6069
  secret: string;
@@ -4490,6 +6074,9 @@ type UpdateWebhookRequest = {
4490
6074
  description?: string;
4491
6075
  url?: string;
4492
6076
  status?: WebhookStatusType;
6077
+ /**
6078
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6079
+ */
4493
6080
  includeInternalTxs?: boolean;
4494
6081
  includeLogs?: boolean;
4495
6082
  };
@@ -4505,16 +6092,16 @@ declare class WebhooksService {
4505
6092
  /**
4506
6093
  * Create a webhook
4507
6094
  * Create a new webhook.
4508
- * @returns WebhookResponse
6095
+ * @returns any Successful response
4509
6096
  * @throws ApiError
4510
6097
  */
4511
6098
  createWebhook({ requestBody, }: {
4512
- requestBody: CreateWebhookRequest;
4513
- }): CancelablePromise<WebhookResponse>;
6099
+ requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6100
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4514
6101
  /**
4515
6102
  * List webhooks
4516
6103
  * Lists webhooks for the user.
4517
- * @returns ListWebhooksResponse
6104
+ * @returns ListWebhooksResponse Successful response
4518
6105
  * @throws ApiError
4519
6106
  */
4520
6107
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4534,7 +6121,7 @@ declare class WebhooksService {
4534
6121
  /**
4535
6122
  * Get a webhook by ID
4536
6123
  * Retrieves a webhook by ID.
4537
- * @returns WebhookResponse
6124
+ * @returns any Successful response
4538
6125
  * @throws ApiError
4539
6126
  */
4540
6127
  getWebhook({ id, }: {
@@ -4542,11 +6129,11 @@ declare class WebhooksService {
4542
6129
  * The webhook identifier.
4543
6130
  */
4544
6131
  id: string;
4545
- }): CancelablePromise<WebhookResponse>;
6132
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4546
6133
  /**
4547
6134
  * Deactivate a webhook
4548
6135
  * Deactivates a webhook by ID.
4549
- * @returns WebhookResponse
6136
+ * @returns any Successful response
4550
6137
  * @throws ApiError
4551
6138
  */
4552
6139
  deactivateWebhook({ id, }: {
@@ -4554,11 +6141,11 @@ declare class WebhooksService {
4554
6141
  * The webhook identifier.
4555
6142
  */
4556
6143
  id: string;
4557
- }): CancelablePromise<WebhookResponse>;
6144
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4558
6145
  /**
4559
6146
  * Update a webhook
4560
6147
  * Updates an existing webhook.
4561
- * @returns WebhookResponse
6148
+ * @returns any Successful response
4562
6149
  * @throws ApiError
4563
6150
  */
4564
6151
  updateWebhook({ id, requestBody, }: {
@@ -4567,25 +6154,25 @@ declare class WebhooksService {
4567
6154
  */
4568
6155
  id: string;
4569
6156
  requestBody: UpdateWebhookRequest;
4570
- }): CancelablePromise<WebhookResponse>;
6157
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4571
6158
  /**
4572
- * Generate a shared secret
4573
- * Generates a new shared secret.
4574
- * @returns SharedSecretsResponse
6159
+ * Generate or rotate a shared secret
6160
+ * Generates a new shared secret or rotate an existing one.
6161
+ * @returns SharedSecretsResponse Successful response
4575
6162
  * @throws ApiError
4576
6163
  */
4577
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6164
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4578
6165
  /**
4579
6166
  * Get a shared secret
4580
6167
  * Get a previously generated shared secret.
4581
- * @returns SharedSecretsResponse
6168
+ * @returns SharedSecretsResponse Successful response
4582
6169
  * @throws ApiError
4583
6170
  */
4584
6171
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4585
6172
  /**
4586
- * Add addresses to webhook
4587
- * Add addresses to webhook.
4588
- * @returns WebhookResponse
6173
+ * Add addresses to EVM activity webhook
6174
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6175
+ * @returns EVMAddressActivityResponse Successful response
4589
6176
  * @throws ApiError
4590
6177
  */
4591
6178
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4594,11 +6181,11 @@ declare class WebhooksService {
4594
6181
  */
4595
6182
  id: string;
4596
6183
  requestBody: AddressesChangeRequest;
4597
- }): CancelablePromise<WebhookResponse>;
6184
+ }): CancelablePromise<EVMAddressActivityResponse>;
4598
6185
  /**
4599
- * Remove addresses from webhook
4600
- * Remove addresses from webhook.
4601
- * @returns WebhookResponse
6186
+ * Remove addresses from EVM activity webhook
6187
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6188
+ * @returns EVMAddressActivityResponse Successful response
4602
6189
  * @throws ApiError
4603
6190
  */
4604
6191
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4607,11 +6194,11 @@ declare class WebhooksService {
4607
6194
  */
4608
6195
  id: string;
4609
6196
  requestBody: AddressesChangeRequest;
4610
- }): CancelablePromise<WebhookResponse>;
6197
+ }): CancelablePromise<EVMAddressActivityResponse>;
4611
6198
  /**
4612
- * List adresses by webhook
4613
- * List adresses by webhook.
4614
- * @returns ListWebhookAddressesResponse
6199
+ * List adresses by EVM activity webhooks
6200
+ * List adresses by webhook. Only valid for EVM activity webhooks.
6201
+ * @returns ListWebhookAddressesResponse Successful response
4615
6202
  * @throws ApiError
4616
6203
  */
4617
6204
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4632,6 +6219,7 @@ declare class WebhooksService {
4632
6219
 
4633
6220
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4634
6221
  declare class Glacier {
6222
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4635
6223
  readonly default: DefaultService;
4636
6224
  readonly evmBalances: EvmBalancesService;
4637
6225
  readonly evmBlocks: EvmBlocksService;
@@ -4639,7 +6227,9 @@ declare class Glacier {
4639
6227
  readonly evmContracts: EvmContractsService;
4640
6228
  readonly evmTransactions: EvmTransactionsService;
4641
6229
  readonly healthCheck: HealthCheckService;
6230
+ readonly interchainMessaging: InterchainMessagingService;
4642
6231
  readonly nfTs: NfTsService;
6232
+ readonly notifications: NotificationsService;
4643
6233
  readonly operations: OperationsService;
4644
6234
  readonly primaryNetwork: PrimaryNetworkService;
4645
6235
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4648,7 +6238,7 @@ declare class Glacier {
4648
6238
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4649
6239
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4650
6240
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4651
- readonly rpc: RpcService;
6241
+ readonly signatureAggregator: SignatureAggregatorService;
4652
6242
  readonly teleporter: TeleporterService;
4653
6243
  readonly webhooks: WebhooksService;
4654
6244
  readonly request: BaseHttpRequest;
@@ -4672,6 +6262,209 @@ declare class ApiError extends Error {
4672
6262
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4673
6263
  }
4674
6264
 
6265
+ type AccessListData = {
6266
+ /**
6267
+ * Access Address
6268
+ */
6269
+ accessAddresses: string;
6270
+ /**
6271
+ * Storage keys
6272
+ */
6273
+ storageKeys: Array<string>;
6274
+ };
6275
+
6276
+ type BadGateway = {
6277
+ /**
6278
+ * The error message describing the reason for the exception
6279
+ */
6280
+ message: (string | Array<string>);
6281
+ /**
6282
+ * The HTTP status code of the response
6283
+ */
6284
+ statusCode: number;
6285
+ /**
6286
+ * The type of error
6287
+ */
6288
+ error: string;
6289
+ };
6290
+
6291
+ type BadRequest = {
6292
+ /**
6293
+ * The error message describing the reason for the exception
6294
+ */
6295
+ message: (string | Array<string>);
6296
+ /**
6297
+ * The HTTP status code of the response
6298
+ */
6299
+ statusCode: number;
6300
+ /**
6301
+ * The type of error
6302
+ */
6303
+ error: string;
6304
+ };
6305
+
6306
+ type DataListChainsResponse = {
6307
+ chains: Array<ChainInfo>;
6308
+ };
6309
+
6310
+ type ERCToken = {
6311
+ /**
6312
+ * Token contract address
6313
+ */
6314
+ address: string;
6315
+ /**
6316
+ * Token name
6317
+ */
6318
+ name: string;
6319
+ /**
6320
+ * Token symbol
6321
+ */
6322
+ symbol: string;
6323
+ /**
6324
+ * Token decimals
6325
+ */
6326
+ decimals: number;
6327
+ /**
6328
+ * Value including decimals
6329
+ */
6330
+ valueWithDecimals: string;
6331
+ };
6332
+
6333
+ type ERCTransfer = {
6334
+ /**
6335
+ * Transaction hash
6336
+ */
6337
+ transactionHash: string;
6338
+ /**
6339
+ * Transfer type
6340
+ */
6341
+ type: string;
6342
+ /**
6343
+ * Sender address
6344
+ */
6345
+ from: string;
6346
+ /**
6347
+ * Recipient address
6348
+ */
6349
+ to: string;
6350
+ /**
6351
+ * Amount transferred
6352
+ */
6353
+ value: string;
6354
+ /**
6355
+ * Token Id
6356
+ */
6357
+ tokenId?: string;
6358
+ /**
6359
+ * Block timestamp
6360
+ */
6361
+ blockTimestamp: number;
6362
+ /**
6363
+ * Log index
6364
+ */
6365
+ logIndex: number;
6366
+ /**
6367
+ * erc20 Token details
6368
+ */
6369
+ erc20Token?: ERCToken;
6370
+ /**
6371
+ * erc721 Token details
6372
+ */
6373
+ erc721Token?: ERCToken;
6374
+ /**
6375
+ * erc1155 Token details
6376
+ */
6377
+ erc1155Token?: ERCToken;
6378
+ };
6379
+
6380
+ type Forbidden = {
6381
+ /**
6382
+ * The error message describing the reason for the exception
6383
+ */
6384
+ message: (string | Array<string>);
6385
+ /**
6386
+ * The HTTP status code of the response
6387
+ */
6388
+ statusCode: number;
6389
+ /**
6390
+ * The type of error
6391
+ */
6392
+ error: string;
6393
+ };
6394
+
6395
+ type InternalServerError = {
6396
+ /**
6397
+ * The error message describing the reason for the exception
6398
+ */
6399
+ message: (string | Array<string>);
6400
+ /**
6401
+ * The HTTP status code of the response
6402
+ */
6403
+ statusCode: number;
6404
+ /**
6405
+ * The type of error
6406
+ */
6407
+ error: string;
6408
+ };
6409
+
6410
+ type Log = {
6411
+ /**
6412
+ * Contract address
6413
+ */
6414
+ address: string;
6415
+ /**
6416
+ * First topic
6417
+ */
6418
+ topic0: string;
6419
+ /**
6420
+ * Second topic (optional)
6421
+ */
6422
+ topic1?: string;
6423
+ /**
6424
+ * Third topic (optional)
6425
+ */
6426
+ topic2?: string;
6427
+ /**
6428
+ * Fourth topic (optional)
6429
+ */
6430
+ topic3?: string;
6431
+ /**
6432
+ * Event data
6433
+ */
6434
+ data: string;
6435
+ /**
6436
+ * Transaction index
6437
+ */
6438
+ transactionIndex: number;
6439
+ /**
6440
+ * Log index
6441
+ */
6442
+ logIndex: number;
6443
+ /**
6444
+ * Indicates if the log was removed
6445
+ */
6446
+ removed: boolean;
6447
+ };
6448
+
6449
+ type NetworkTokenInfo = {
6450
+ /**
6451
+ * Token name
6452
+ */
6453
+ tokenName?: string;
6454
+ /**
6455
+ * Token symbol
6456
+ */
6457
+ tokenSymbol?: string;
6458
+ /**
6459
+ * Token decimals
6460
+ */
6461
+ tokenDecimals?: number;
6462
+ /**
6463
+ * Value including decimals
6464
+ */
6465
+ valueWithDecimals?: string;
6466
+ };
6467
+
4675
6468
  type NextPageToken = {
4676
6469
  /**
4677
6470
  * 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.
@@ -4679,4 +6472,218 @@ type NextPageToken = {
4679
6472
  nextPageToken?: string;
4680
6473
  };
4681
6474
 
4682
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
6475
+ type NotFound = {
6476
+ /**
6477
+ * The error message describing the reason for the exception
6478
+ */
6479
+ message: (string | Array<string>);
6480
+ /**
6481
+ * The HTTP status code of the response
6482
+ */
6483
+ statusCode: number;
6484
+ /**
6485
+ * The type of error
6486
+ */
6487
+ error: string;
6488
+ };
6489
+
6490
+ type ServiceUnavailable = {
6491
+ /**
6492
+ * The error message describing the reason for the exception
6493
+ */
6494
+ message: (string | Array<string>);
6495
+ /**
6496
+ * The HTTP status code of the response
6497
+ */
6498
+ statusCode: number;
6499
+ /**
6500
+ * The type of error
6501
+ */
6502
+ error: string;
6503
+ };
6504
+
6505
+ type TooManyRequests = {
6506
+ /**
6507
+ * The error message describing the reason for the exception
6508
+ */
6509
+ message: (string | Array<string>);
6510
+ /**
6511
+ * The HTTP status code of the response
6512
+ */
6513
+ statusCode: number;
6514
+ /**
6515
+ * The type of error
6516
+ */
6517
+ error: string;
6518
+ };
6519
+
6520
+ type Transaction = {
6521
+ /**
6522
+ * Block hash of the transaction
6523
+ */
6524
+ blockHash: string;
6525
+ /**
6526
+ * Block number of the transaction
6527
+ */
6528
+ blockNumber: string;
6529
+ /**
6530
+ * Sender address
6531
+ */
6532
+ from: string;
6533
+ /**
6534
+ * Gas limit for the transaction
6535
+ */
6536
+ gas: string;
6537
+ /**
6538
+ * Gas price used
6539
+ */
6540
+ gasPrice: string;
6541
+ /**
6542
+ * Maximum fee per gas
6543
+ */
6544
+ maxFeePerGas: string;
6545
+ /**
6546
+ * Maximum priority fee per gas
6547
+ */
6548
+ maxPriorityFeePerGas: string;
6549
+ /**
6550
+ * Transaction hash
6551
+ */
6552
+ txHash: string;
6553
+ /**
6554
+ * Transaction status
6555
+ */
6556
+ txStatus: string;
6557
+ /**
6558
+ * Input data
6559
+ */
6560
+ input: string;
6561
+ /**
6562
+ * Nonce value
6563
+ */
6564
+ nonce: string;
6565
+ /**
6566
+ * Recipient address
6567
+ */
6568
+ to: string;
6569
+ /**
6570
+ * Transaction index
6571
+ */
6572
+ transactionIndex: number;
6573
+ /**
6574
+ * Value transferred in the transaction
6575
+ */
6576
+ value: string;
6577
+ /**
6578
+ * Transaction type
6579
+ */
6580
+ type: number;
6581
+ /**
6582
+ * Chain ID of the network
6583
+ */
6584
+ chainId: string;
6585
+ /**
6586
+ * Cumulative gas used
6587
+ */
6588
+ receiptCumulativeGasUsed: string;
6589
+ /**
6590
+ * Gas used
6591
+ */
6592
+ receiptGasUsed: string;
6593
+ /**
6594
+ * Effective gas price
6595
+ */
6596
+ receiptEffectiveGasPrice: string;
6597
+ /**
6598
+ * Receipt root
6599
+ */
6600
+ receiptRoot: string;
6601
+ /**
6602
+ * Block timestamp
6603
+ */
6604
+ blockTimestamp: number;
6605
+ /**
6606
+ * Contract address (optional)
6607
+ */
6608
+ contractAddress?: string;
6609
+ /**
6610
+ * ERC20 transfers
6611
+ */
6612
+ erc20Transfers: Array<ERCTransfer>;
6613
+ /**
6614
+ * ERC721 transfers
6615
+ */
6616
+ erc721Transfers: Array<ERCTransfer>;
6617
+ /**
6618
+ * ERC1155 transfers
6619
+ */
6620
+ erc1155Transfers: Array<ERCTransfer>;
6621
+ /**
6622
+ * Internal transactions (optional)
6623
+ */
6624
+ internalTransactions?: Array<InternalTransaction>;
6625
+ /**
6626
+ * Access list (optional)
6627
+ */
6628
+ accessList?: Array<AccessListData>;
6629
+ /**
6630
+ * Network token info (optional)
6631
+ */
6632
+ networkToken?: NetworkTokenInfo;
6633
+ };
6634
+
6635
+ type TransactionEvent = {
6636
+ /**
6637
+ * Transaction details
6638
+ */
6639
+ transaction: Transaction;
6640
+ /**
6641
+ * Array of log events
6642
+ */
6643
+ logs?: Array<Log>;
6644
+ };
6645
+
6646
+ type Unauthorized = {
6647
+ /**
6648
+ * The error message describing the reason for the exception
6649
+ */
6650
+ message: (string | Array<string>);
6651
+ /**
6652
+ * The HTTP status code of the response
6653
+ */
6654
+ statusCode: number;
6655
+ /**
6656
+ * The type of error
6657
+ */
6658
+ error: string;
6659
+ };
6660
+
6661
+ type WebhookAddressActivityResponse = {
6662
+ /**
6663
+ * Webhook ID
6664
+ */
6665
+ webhookId: string;
6666
+ /**
6667
+ * Event type
6668
+ */
6669
+ eventType: WebhookAddressActivityResponse.eventType;
6670
+ /**
6671
+ * Message ID
6672
+ */
6673
+ messageId: string;
6674
+ /**
6675
+ * Event details
6676
+ */
6677
+ event: TransactionEvent;
6678
+ };
6679
+ declare namespace WebhookAddressActivityResponse {
6680
+ /**
6681
+ * Event type
6682
+ */
6683
+ enum eventType {
6684
+ ADDRESS_ACTIVITY = "address_activity"
6685
+ }
6686
+ }
6687
+
6688
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6689
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };