@avalabs/glacier-sdk 3.1.0-alpha.9 → 3.1.0-alpha.92

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 (318) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2516 -631
  3. package/esm/generated/Glacier.d.ts +4 -4
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  6. package/esm/generated/core/ApiResult.d.ts +1 -1
  7. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  8. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  9. package/esm/generated/core/OpenAPI.d.ts +2 -1
  10. package/esm/generated/core/OpenAPI.js +1 -1
  11. package/esm/generated/models/AccessListData.d.ts +12 -0
  12. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  13. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  14. package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
  15. package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
  16. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  17. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  18. package/esm/generated/models/AssetAmount.d.ts +1 -1
  19. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  20. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  21. package/esm/generated/models/BadGateway.d.ts +1 -1
  22. package/esm/generated/models/BadRequest.d.ts +1 -1
  23. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  24. package/esm/generated/models/Blockchain.d.ts +11 -1
  25. package/esm/generated/models/BlockchainId.d.ts +0 -2
  26. package/esm/generated/models/BlockchainId.js +1 -1
  27. package/esm/generated/models/BlockchainIds.d.ts +1 -3
  28. package/esm/generated/models/BlockchainIds.js +1 -1
  29. package/esm/generated/models/BlockchainInfo.d.ts +9 -2
  30. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  31. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  32. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  33. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  34. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  35. package/esm/generated/models/ChainInfo.d.ts +1 -1
  36. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  37. package/esm/generated/models/CommonBalanceType.js +1 -0
  38. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  39. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  40. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  41. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
  42. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
  43. package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
  44. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  45. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  46. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  47. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  48. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  49. package/esm/generated/models/ERCToken.d.ts +24 -0
  50. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  51. package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
  52. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  53. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  54. package/esm/generated/models/EVMInput.d.ts +1 -1
  55. package/esm/generated/models/EVMOutput.d.ts +1 -1
  56. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  57. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  58. package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
  59. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  60. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  61. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  62. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  63. package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
  64. package/esm/generated/models/Erc20TokenV2.js +1 -0
  65. package/esm/generated/models/Erc20Transfer.d.ts +6 -2
  66. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  67. package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
  68. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  69. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  70. package/esm/generated/models/Erc721Transfer.d.ts +6 -2
  71. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  72. package/esm/generated/models/EvmBlock.d.ts +14 -2
  73. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  74. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  75. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  76. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  77. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  78. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  79. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  80. package/esm/generated/models/Forbidden.d.ts +1 -1
  81. package/esm/generated/models/FullNativeTransactionDetails.d.ts +14 -2
  82. package/esm/generated/models/Geolocation.d.ts +24 -0
  83. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  84. package/esm/generated/models/GetEvmBlockResponse.d.ts +14 -2
  85. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  86. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  87. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  88. package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
  89. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  90. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  91. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  92. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  93. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  94. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  95. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  96. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  97. package/esm/generated/models/{ContractSubmissionErc20.js → IcmRewardDetails.js} +1 -1
  98. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  99. package/esm/generated/models/ImageAsset.d.ts +1 -1
  100. package/esm/generated/models/InternalServerError.d.ts +1 -1
  101. package/esm/generated/models/InternalTransaction.d.ts +6 -2
  102. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  103. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  104. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  105. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  106. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  107. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  108. package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
  109. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  110. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  111. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  112. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  113. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  114. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  115. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  116. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  117. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  118. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  120. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  121. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  122. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  124. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  125. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  126. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  127. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  128. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  129. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  130. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  131. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  133. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  134. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  135. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  136. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  137. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  138. package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
  139. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  140. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  141. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  142. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  143. package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
  144. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  145. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  146. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  147. package/esm/generated/models/Log.d.ts +40 -0
  148. package/esm/generated/models/LogsFormat.d.ts +1 -1
  149. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  150. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  151. package/esm/generated/models/Method.d.ts +1 -1
  152. package/esm/generated/models/Metric.d.ts +1 -1
  153. package/esm/generated/models/Money.d.ts +1 -1
  154. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  155. package/esm/generated/models/NativeTransaction.d.ts +14 -2
  156. package/esm/generated/models/Network.d.ts +1 -2
  157. package/esm/generated/models/Network.js +1 -1
  158. package/esm/generated/models/NetworkToken.d.ts +1 -1
  159. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  160. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  161. package/esm/generated/models/NextPageToken.d.ts +1 -1
  162. package/esm/generated/models/NotFound.d.ts +1 -1
  163. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  164. package/esm/generated/models/PChainBalance.d.ts +1 -1
  165. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  166. package/esm/generated/models/PChainTransaction.d.ts +40 -9
  167. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  168. package/esm/generated/models/PChainTransactionType.js +1 -1
  169. package/esm/generated/models/PChainUtxo.d.ts +32 -1
  170. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  171. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  172. package/esm/generated/models/PendingIcmMessage.js +1 -0
  173. package/esm/generated/models/PendingReward.d.ts +1 -1
  174. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  175. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  176. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  177. package/esm/generated/models/PricingProviders.d.ts +1 -1
  178. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  179. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  180. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  181. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  182. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  183. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  184. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  185. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  186. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  187. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  188. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  189. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  190. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  191. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
  192. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  193. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  194. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  195. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  196. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  197. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  198. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  199. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  200. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  201. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  202. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  203. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  204. package/esm/generated/models/ResourceLink.d.ts +1 -1
  205. package/esm/generated/models/Rewards.d.ts +1 -1
  206. package/esm/generated/models/RichAddress.d.ts +1 -1
  207. package/esm/generated/models/RpcMetrics.d.ts +1 -1
  208. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  209. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  210. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  211. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  212. package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
  213. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  214. package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
  215. package/esm/generated/models/SignatureAggregatorRequest.d.ts +17 -3
  216. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  217. package/esm/generated/models/Subnet.d.ts +16 -3
  218. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  219. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  220. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  221. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  222. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  223. package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
  224. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  225. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  226. package/esm/generated/models/TooManyRequests.d.ts +1 -1
  227. package/esm/generated/models/Transaction.d.ts +121 -0
  228. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  229. package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
  230. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  231. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  232. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  233. package/esm/generated/models/Unauthorized.d.ts +1 -1
  234. package/esm/generated/models/UnknownContract.d.ts +1 -1
  235. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  236. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  237. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  238. package/esm/generated/models/Utxo.d.ts +5 -1
  239. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  240. package/esm/generated/models/UtxoType.d.ts +3 -0
  241. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  242. package/esm/generated/models/UtxosSortByOption.js +1 -0
  243. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  244. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  245. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  246. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  247. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  248. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  249. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  250. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  251. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  252. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  253. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  254. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  255. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  256. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  257. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  258. package/esm/generated/models/XChainBalances.d.ts +1 -1
  259. package/esm/generated/models/XChainId.d.ts +0 -1
  260. package/esm/generated/models/XChainId.js +1 -1
  261. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  262. package/esm/generated/models/XChainVertex.d.ts +1 -1
  263. package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
  264. package/esm/generated/services/AvaxSupplyService.js +1 -0
  265. package/esm/generated/services/DataApiUsageMetricsService.d.ts +122 -23
  266. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  267. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  268. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  269. package/esm/generated/services/EvmBlocksService.js +1 -1
  270. package/esm/generated/services/EvmChainsService.d.ts +72 -6
  271. package/esm/generated/services/EvmChainsService.js +1 -1
  272. package/esm/generated/services/EvmContractsService.d.ts +0 -19
  273. package/esm/generated/services/EvmContractsService.js +1 -1
  274. package/esm/generated/services/EvmTransactionsService.d.ts +75 -2
  275. package/esm/generated/services/EvmTransactionsService.js +1 -1
  276. package/esm/generated/services/HealthCheckService.d.ts +11 -7
  277. package/esm/generated/services/HealthCheckService.js +1 -1
  278. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  279. package/esm/generated/services/InterchainMessagingService.js +1 -0
  280. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  281. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  282. package/esm/generated/services/PrimaryNetworkService.d.ts +55 -4
  283. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  284. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  285. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  286. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +94 -1
  287. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  288. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  289. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  290. package/esm/generated/services/TeleporterService.d.ts +12 -6
  291. package/esm/generated/services/WebhooksService.d.ts +28 -24
  292. package/esm/generated/services/WebhooksService.js +1 -1
  293. package/esm/index.d.ts +69 -17
  294. package/esm/index.js +1 -1
  295. package/package.json +15 -6
  296. package/LICENSE.md +0 -9
  297. package/dist/index.js +0 -1
  298. package/esm/generated/models/ContractSubmissionBody.d.ts +0 -10
  299. package/esm/generated/models/ContractSubmissionErc1155.d.ts +0 -31
  300. package/esm/generated/models/ContractSubmissionErc1155.js +0 -1
  301. package/esm/generated/models/ContractSubmissionErc20.d.ts +0 -31
  302. package/esm/generated/models/ContractSubmissionErc721.d.ts +0 -29
  303. package/esm/generated/models/ContractSubmissionErc721.js +0 -1
  304. package/esm/generated/models/ContractSubmissionUnknown.d.ts +0 -25
  305. package/esm/generated/models/ContractSubmissionUnknown.js +0 -1
  306. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  307. package/esm/generated/models/EventType.d.ts +0 -5
  308. package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
  309. package/esm/generated/models/PrimaryNetwork.js +0 -1
  310. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  311. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  312. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  313. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  314. package/esm/generated/models/UpdateContractResponse.d.ts +0 -10
  315. package/esm/generated/services/DefaultService.d.ts +0 -14
  316. package/esm/generated/services/DefaultService.js +0 -1
  317. package/esm/generated/services/RpcService.d.ts +0 -25
  318. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,65 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type AvaxSupplyResponse = {
58
+ /**
59
+ * The circulating supply of AVAX.
60
+ */
61
+ circulatingSupply: string;
62
+ /**
63
+ * The total supply of AVAX.
64
+ */
65
+ totalSupply: string;
66
+ /**
67
+ * Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
68
+ */
69
+ totalPBurned: string;
70
+ /**
71
+ * Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
72
+ */
73
+ totalCBurned: string;
74
+ /**
75
+ * The total X-chain burned fees of AVAX.
76
+ */
77
+ totalXBurned: string;
78
+ /**
79
+ * The total staked AVAX.
80
+ */
81
+ totalStaked: string;
82
+ /**
83
+ * The total locked AVAX.
84
+ */
85
+ totalLocked: string;
86
+ /**
87
+ * The total rewards AVAX.
88
+ */
89
+ totalRewards: string;
90
+ /**
91
+ * The last updated time of the AVAX supply.
92
+ */
93
+ lastUpdated: string;
94
+ /**
95
+ * The genesis unlock amount of the AVAX supply.
96
+ */
97
+ genesisUnlock: string;
98
+ /**
99
+ * The total L1 validator fees of AVAX.
100
+ */
101
+ l1ValidatorFees: string;
102
+ };
103
+
104
+ declare class AvaxSupplyService {
105
+ readonly httpRequest: BaseHttpRequest;
106
+ constructor(httpRequest: BaseHttpRequest);
107
+ /**
108
+ * Get AVAX supply information
109
+ * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
110
+ * @returns AvaxSupplyResponse Successful response
111
+ * @throws ApiError
112
+ */
113
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
114
+ }
115
+
57
116
  type LogsFormatMetadata = {
58
117
  /**
59
118
  * The IP address of the client that made the request.
@@ -148,6 +207,28 @@ type LogsResponseDTO = {
148
207
  logs: Array<LogsFormat>;
149
208
  };
150
209
 
210
+ declare enum Network {
211
+ MAINNET = "mainnet",
212
+ FUJI = "fuji",
213
+ TESTNET = "testnet"
214
+ }
215
+
216
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
217
+ RPC_METHOD = "rpcMethod",
218
+ REQUEST_PATH = "requestPath",
219
+ RESPONSE_CODE = "responseCode",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent"
223
+ }
224
+
225
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
226
+ HOURLY = "hourly",
227
+ DAILY = "daily",
228
+ WEEKLY = "weekly",
229
+ MONTHLY = "monthly"
230
+ }
231
+
151
232
  type RpcUsageMetricsValueAggregated = {
152
233
  /**
153
234
  * The total number of requests
@@ -173,6 +254,10 @@ type RpcUsageMetricsValueAggregated = {
173
254
  * The number of invalid requests
174
255
  */
175
256
  invalidRequests: number;
257
+ /**
258
+ * The number of API credits wasted on invalid requests
259
+ */
260
+ apiCreditsWasted: number;
176
261
  /**
177
262
  * Column name used for data aggregation
178
263
  */
@@ -190,6 +275,10 @@ declare namespace RpcUsageMetricsValueAggregated {
190
275
  RPC_METHOD = "rpcMethod",
191
276
  RESPONSE_CODE = "responseCode",
192
277
  RL_BYPASS_TOKEN = "rlBypassToken",
278
+ REQUEST_PATH = "requestPath",
279
+ COUNTRY = "country",
280
+ CONTINENT = "continent",
281
+ USER_AGENT = "userAgent",
193
282
  NONE = "None"
194
283
  }
195
284
  }
@@ -205,19 +294,56 @@ type RpcMetrics = {
205
294
  values: Array<RpcUsageMetricsValueAggregated>;
206
295
  };
207
296
 
208
- type RpcUsageMetricsResponseDTO = {
297
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
209
298
  /**
210
299
  * Duration in which the metrics value is aggregated
211
300
  */
212
301
  aggregateDuration: string;
213
302
  /**
214
- * ChainId for which the metrics are aggregated
303
+ * Metrics values
215
304
  */
216
- chainId: string;
305
+ metrics: Array<RpcMetrics>;
306
+ /**
307
+ * Network type for which the metrics are aggregated
308
+ */
309
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
310
+ };
311
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
312
+ /**
313
+ * Network type for which the metrics are aggregated
314
+ */
315
+ enum network {
316
+ MAINNET = "mainnet",
317
+ TESTNET = "testnet"
318
+ }
319
+ }
320
+
321
+ declare enum RpcUsageMetricsGroupByEnum {
322
+ RPC_METHOD = "rpcMethod",
323
+ RESPONSE_CODE = "responseCode",
324
+ RL_BYPASS_TOKEN = "rlBypassToken"
325
+ }
326
+
327
+ declare enum SubnetRpcTimeIntervalGranularity {
328
+ HOURLY = "hourly",
329
+ DAILY = "daily",
330
+ WEEKLY = "weekly",
331
+ MONTHLY = "monthly"
332
+ }
333
+
334
+ type SubnetRpcUsageMetricsResponseDTO = {
335
+ /**
336
+ * Duration in which the metrics value is aggregated
337
+ */
338
+ aggregateDuration: string;
217
339
  /**
218
340
  * Metrics values
219
341
  */
220
342
  metrics: Array<RpcMetrics>;
343
+ /**
344
+ * ChainId for which the metrics are aggregated
345
+ */
346
+ chainId: string;
221
347
  };
222
348
 
223
349
  declare enum TimeIntervalGranularityExtended {
@@ -323,7 +449,7 @@ declare class DataApiUsageMetricsService {
323
449
  * @returns UsageMetricsResponseDTO Successful response
324
450
  * @throws ApiError
325
451
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
452
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
453
  /**
328
454
  * Organization ID to fetch usage metrics for
329
455
  */
@@ -333,7 +459,7 @@ declare class DataApiUsageMetricsService {
333
459
  */
334
460
  startTimestamp?: number;
335
461
  /**
336
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
462
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
337
463
  */
338
464
  endTimestamp?: number;
339
465
  /**
@@ -348,10 +474,6 @@ declare class DataApiUsageMetricsService {
348
474
  * Filter data by chain ID.
349
475
  */
350
476
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
477
  /**
356
478
  * Filter data by response status code.
357
479
  */
@@ -364,6 +486,10 @@ declare class DataApiUsageMetricsService {
364
486
  * Filter data by API key ID.
365
487
  */
366
488
  apiKeyId?: string;
489
+ /**
490
+ * Filter data by request path.
491
+ */
492
+ requestPath?: string;
367
493
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
494
  /**
369
495
  * Get logs for requests made by client
@@ -371,7 +497,7 @@ declare class DataApiUsageMetricsService {
371
497
  * @returns LogsResponseDTO Successful response
372
498
  * @throws ApiError
373
499
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
500
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
501
  /**
376
502
  * Organization ID to fetch usage metrics for
377
503
  */
@@ -381,17 +507,13 @@ declare class DataApiUsageMetricsService {
381
507
  */
382
508
  startTimestamp?: number;
383
509
  /**
384
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
510
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
385
511
  */
386
512
  endTimestamp?: number;
387
513
  /**
388
514
  * Filter data by chain ID.
389
515
  */
390
516
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
517
  /**
396
518
  * Filter data by response status code.
397
519
  */
@@ -404,6 +526,10 @@ declare class DataApiUsageMetricsService {
404
526
  * Filter data by API key ID.
405
527
  */
406
528
  apiKeyId?: string;
529
+ /**
530
+ * Filter data by request path.
531
+ */
532
+ requestPath?: string;
407
533
  /**
408
534
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
535
  */
@@ -415,35 +541,75 @@ declare class DataApiUsageMetricsService {
415
541
  }): CancelablePromise<LogsResponseDTO>;
416
542
  /**
417
543
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
- * @returns RpcUsageMetricsResponseDTO Successful response
544
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
545
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
420
546
  * @throws ApiError
421
547
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
548
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
549
  /**
424
- * Query param for setting time interval of data aggregation.
550
+ * Time interval granularity for data aggregation for subnet
551
+ * rpc metrics
425
552
  */
426
- timeInterval?: string;
553
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
554
  /**
428
555
  * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
429
556
  */
430
557
  startTimestamp?: number;
431
558
  /**
432
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
559
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
433
560
  */
434
561
  endTimestamp?: number;
435
562
  /**
436
563
  * Query param for the criterion used for grouping metrics
437
564
  */
438
- groupBy?: UsageMetricsGroupByEnum;
565
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
566
  /**
440
567
  * Filter data by chain ID.
441
568
  */
442
569
  chainId?: string;
443
570
  /**
444
- * Filter data by request path.
571
+ * Filter data by response status code.
445
572
  */
446
- requestPath?: string;
573
+ responseCode?: string;
574
+ /**
575
+ * Filter data by RPC method.
576
+ */
577
+ rpcMethod?: string;
578
+ /**
579
+ * Filter data by Rl Bypass API Token.
580
+ */
581
+ rlBypassApiToken?: string;
582
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
583
+ /**
584
+ * @deprecated
585
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
586
+ *
587
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
588
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
589
+ * @throws ApiError
590
+ */
591
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
592
+ /**
593
+ * Time interval granularity for data aggregation for subnet
594
+ * rpc metrics
595
+ */
596
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
597
+ /**
598
+ * 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.
599
+ */
600
+ startTimestamp?: number;
601
+ /**
602
+ * 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.
603
+ */
604
+ endTimestamp?: number;
605
+ /**
606
+ * Query param for the criterion used for grouping metrics
607
+ */
608
+ groupBy?: RpcUsageMetricsGroupByEnum;
609
+ /**
610
+ * Filter data by chain ID.
611
+ */
612
+ chainId?: string;
447
613
  /**
448
614
  * Filter data by response status code.
449
615
  */
@@ -456,17 +622,60 @@ declare class DataApiUsageMetricsService {
456
622
  * Filter data by Rl Bypass API Token.
457
623
  */
458
624
  rlBypassApiToken?: string;
459
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
460
- }
461
-
462
- declare class DefaultService {
463
- readonly httpRequest: BaseHttpRequest;
464
- constructor(httpRequest: BaseHttpRequest);
625
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
465
626
  /**
466
- * @returns any
627
+ * Get usage metrics for the Primary Network RPC
628
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
629
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
467
630
  * @throws ApiError
468
631
  */
469
- mediaControllerUploadImage(): CancelablePromise<any>;
632
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
633
+ /**
634
+ * Either mainnet or testnet/fuji.
635
+ */
636
+ network: Network;
637
+ /**
638
+ * Time interval granularity for data aggregation for subnet
639
+ * rpc metrics
640
+ */
641
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
642
+ /**
643
+ * 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.
644
+ */
645
+ startTimestamp?: number;
646
+ /**
647
+ * 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.
648
+ */
649
+ endTimestamp?: number;
650
+ /**
651
+ * Query param for the criterion used for grouping metrics
652
+ */
653
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
654
+ /**
655
+ * Filter data by response status code.
656
+ */
657
+ responseCode?: string;
658
+ /**
659
+ * Filter data by request path.
660
+ */
661
+ requestPath?: string;
662
+ /**
663
+ * 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.
664
+ */
665
+ country?: string;
666
+ /**
667
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
668
+ */
669
+ continent?: string;
670
+ /**
671
+ * Filter data by User Agent.
672
+ */
673
+ userAgent?: string;
674
+ /**
675
+ * Filter data by RPC method.
676
+ */
677
+ rpcMethod?: string;
678
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
470
679
  }
471
680
 
472
681
  /**
@@ -655,6 +864,10 @@ type ListErc1155BalancesResponse = {
655
864
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
656
865
  */
657
866
  nextPageToken?: string;
867
+ /**
868
+ * The native token balance for the address.
869
+ */
870
+ nativeTokenBalance: NativeTokenBalance;
658
871
  /**
659
872
  * The list of ERC-1155 token balances for the address.
660
873
  */
@@ -699,11 +912,22 @@ type Erc20TokenBalance = {
699
912
  * The monetary value of the balance, if a price is available for the token.
700
913
  */
701
914
  balanceValue?: Money;
915
+ /**
916
+ * 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.
917
+ */
918
+ tokenReputation: Erc20TokenBalance.tokenReputation;
702
919
  };
703
920
  declare namespace Erc20TokenBalance {
704
921
  enum ercType {
705
922
  ERC_20 = "ERC-20"
706
923
  }
924
+ /**
925
+ * 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.
926
+ */
927
+ enum tokenReputation {
928
+ MALICIOUS = "Malicious",
929
+ BENIGN = "Benign"
930
+ }
707
931
  }
708
932
 
709
933
  type ListErc20BalancesResponse = {
@@ -711,6 +935,10 @@ type ListErc20BalancesResponse = {
711
935
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
712
936
  */
713
937
  nextPageToken?: string;
938
+ /**
939
+ * The native token balance for the address.
940
+ */
941
+ nativeTokenBalance: NativeTokenBalance;
714
942
  /**
715
943
  * The list of ERC-20 token balances for the address.
716
944
  */
@@ -722,6 +950,10 @@ type ListErc721BalancesResponse = {
722
950
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
723
951
  */
724
952
  nextPageToken?: string;
953
+ /**
954
+ * The native token balance for the address.
955
+ */
956
+ nativeTokenBalance: NativeTokenBalance;
725
957
  /**
726
958
  * The list of ERC-721 token balances for the address.
727
959
  */
@@ -785,7 +1017,7 @@ declare class EvmBalancesService {
785
1017
  */
786
1018
  pageToken?: string;
787
1019
  /**
788
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1020
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
789
1021
  */
790
1022
  pageSize?: number;
791
1023
  /**
@@ -823,7 +1055,7 @@ declare class EvmBalancesService {
823
1055
  */
824
1056
  pageToken?: string;
825
1057
  /**
826
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1058
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
827
1059
  */
828
1060
  pageSize?: number;
829
1061
  /**
@@ -859,7 +1091,7 @@ declare class EvmBalancesService {
859
1091
  */
860
1092
  pageToken?: string;
861
1093
  /**
862
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1094
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
863
1095
  */
864
1096
  pageSize?: number;
865
1097
  /**
@@ -889,7 +1121,7 @@ declare class EvmBalancesService {
889
1121
  */
890
1122
  pageToken?: string;
891
1123
  /**
892
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1124
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
893
1125
  */
894
1126
  pageSize?: number;
895
1127
  /**
@@ -900,14 +1132,26 @@ declare class EvmBalancesService {
900
1132
  }
901
1133
 
902
1134
  type GetEvmBlockResponse = {
1135
+ /**
1136
+ * The EVM chain ID on which the block was created.
1137
+ */
1138
+ chainId: string;
903
1139
  /**
904
1140
  * The block number on the chain.
905
1141
  */
906
1142
  blockNumber: string;
907
1143
  /**
908
- * The block finality timestamp.
1144
+ * The block creation (proposal) timestamp in seconds
909
1145
  */
910
1146
  blockTimestamp: number;
1147
+ /**
1148
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1149
+ */
1150
+ blockTimestampMilliseconds?: number;
1151
+ /**
1152
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1153
+ */
1154
+ blockMinDelayExcess?: number;
911
1155
  /**
912
1156
  * The block hash identifier.
913
1157
  */
@@ -944,14 +1188,26 @@ type GetEvmBlockResponse = {
944
1188
  };
945
1189
 
946
1190
  type EvmBlock = {
1191
+ /**
1192
+ * The EVM chain ID on which the block was created.
1193
+ */
1194
+ chainId: string;
947
1195
  /**
948
1196
  * The block number on the chain.
949
1197
  */
950
1198
  blockNumber: string;
951
1199
  /**
952
- * The block finality timestamp.
1200
+ * The block creation (proposal) timestamp in seconds
953
1201
  */
954
1202
  blockTimestamp: number;
1203
+ /**
1204
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1205
+ */
1206
+ blockTimestampMilliseconds?: number;
1207
+ /**
1208
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1209
+ */
1210
+ blockMinDelayExcess?: number;
955
1211
  /**
956
1212
  * The block hash identifier.
957
1213
  */
@@ -998,6 +1254,26 @@ type ListEvmBlocksResponse = {
998
1254
  declare class EvmBlocksService {
999
1255
  readonly httpRequest: BaseHttpRequest;
1000
1256
  constructor(httpRequest: BaseHttpRequest);
1257
+ /**
1258
+ * List latest blocks across all supported EVM chains
1259
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1260
+ * @returns ListEvmBlocksResponse Successful response
1261
+ * @throws ApiError
1262
+ */
1263
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1264
+ /**
1265
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1266
+ */
1267
+ pageToken?: string;
1268
+ /**
1269
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1270
+ */
1271
+ pageSize?: number;
1272
+ /**
1273
+ * Either mainnet or testnet/fuji.
1274
+ */
1275
+ network?: Network;
1276
+ }): CancelablePromise<ListEvmBlocksResponse>;
1001
1277
  /**
1002
1278
  * List latest blocks
1003
1279
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1120,41 +1396,171 @@ type ChainInfo = {
1120
1396
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1397
  };
1122
1398
 
1399
+ type ListAddressChainsResponse = {
1400
+ indexedChains?: Array<ChainInfo>;
1401
+ unindexedChains?: Array<string>;
1402
+ };
1403
+
1123
1404
  type ListChainsResponse = {
1124
1405
  chains: Array<ChainInfo>;
1125
1406
  };
1126
1407
 
1127
- declare enum Network {
1128
- MAINNET = "mainnet",
1129
- FUJI = "fuji",
1130
- TESTNET = "testnet",
1131
- DEVNET = "devnet"
1408
+ /**
1409
+ * 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.
1410
+ */
1411
+ declare enum TransactionMethodType {
1412
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1413
+ CONTRACT_CALL = "CONTRACT_CALL",
1414
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1132
1415
  }
1133
1416
 
1134
- declare class EvmChainsService {
1135
- readonly httpRequest: BaseHttpRequest;
1136
- constructor(httpRequest: BaseHttpRequest);
1417
+ type Method = {
1418
+ callType: TransactionMethodType;
1137
1419
  /**
1138
- * List chains
1139
- * Lists the supported EVM-compatible chains. Filterable by network.
1140
- * @returns ListChainsResponse Successful response
1141
- * @throws ApiError
1420
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1142
1421
  */
1143
- supportedChains({ network, feature, }: {
1144
- /**
1145
- * Either mainnet or testnet/fuji.
1146
- */
1147
- network?: Network;
1148
- /**
1149
- * Filter by feature.
1150
- */
1151
- feature?: ApiFeature;
1152
- }): CancelablePromise<ListChainsResponse>;
1422
+ methodHash: string;
1153
1423
  /**
1154
- * Get chain information
1155
- * Gets chain information for the EVM-compatible chain if supported by the api.
1156
- * @returns GetChainResponse Successful response
1157
- * @throws ApiError
1424
+ * 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'.
1425
+ */
1426
+ methodName?: string;
1427
+ };
1428
+
1429
+ type RichAddress = {
1430
+ /**
1431
+ * The contract name.
1432
+ */
1433
+ name?: string;
1434
+ /**
1435
+ * The contract symbol.
1436
+ */
1437
+ symbol?: string;
1438
+ /**
1439
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1440
+ */
1441
+ decimals?: number;
1442
+ /**
1443
+ * The logo uri for the address.
1444
+ */
1445
+ logoUri?: string;
1446
+ /**
1447
+ * A wallet or contract address in mixed-case checksum encoding.
1448
+ */
1449
+ address: string;
1450
+ };
1451
+
1452
+ type NativeTransaction = {
1453
+ /**
1454
+ * The block number on the chain.
1455
+ */
1456
+ blockNumber: string;
1457
+ /**
1458
+ * The block creation (proposal) timestamp in seconds
1459
+ */
1460
+ blockTimestamp: number;
1461
+ /**
1462
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1463
+ */
1464
+ blockTimestampMilliseconds?: number;
1465
+ /**
1466
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1467
+ */
1468
+ blockMinDelayExcess?: number;
1469
+ /**
1470
+ * The block hash identifier.
1471
+ */
1472
+ blockHash: string;
1473
+ /**
1474
+ * The EVM chain ID on which the transaction occured.
1475
+ */
1476
+ chainId: string;
1477
+ /**
1478
+ * The index at which the transaction occured in the block (0-indexed).
1479
+ */
1480
+ blockIndex: number;
1481
+ /**
1482
+ * The transaction hash identifier.
1483
+ */
1484
+ txHash: string;
1485
+ /**
1486
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1487
+ */
1488
+ txStatus: string;
1489
+ /**
1490
+ * The transaction type.
1491
+ */
1492
+ txType: number;
1493
+ /**
1494
+ * The gas limit set for the transaction.
1495
+ */
1496
+ gasLimit: string;
1497
+ /**
1498
+ * The amount of gas used.
1499
+ */
1500
+ gasUsed: string;
1501
+ /**
1502
+ * The gas price denominated by the number of decimals of the native token.
1503
+ */
1504
+ gasPrice: string;
1505
+ /**
1506
+ * The nonce used by the sender of the transaction.
1507
+ */
1508
+ nonce: string;
1509
+ from: RichAddress;
1510
+ to: RichAddress;
1511
+ method?: Method;
1512
+ value: string;
1513
+ };
1514
+
1515
+ type ListNativeTransactionsResponse = {
1516
+ /**
1517
+ * 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.
1518
+ */
1519
+ nextPageToken?: string;
1520
+ transactions: Array<NativeTransaction>;
1521
+ };
1522
+
1523
+ declare enum TransactionStatus {
1524
+ FAILED = "failed",
1525
+ SUCCESS = "success"
1526
+ }
1527
+
1528
+ declare class EvmChainsService {
1529
+ readonly httpRequest: BaseHttpRequest;
1530
+ constructor(httpRequest: BaseHttpRequest);
1531
+ /**
1532
+ * List all chains associated with a given address
1533
+ * 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.
1534
+ * @returns ListAddressChainsResponse Successful response
1535
+ * @throws ApiError
1536
+ */
1537
+ listAddressChains({ address, }: {
1538
+ /**
1539
+ * A wallet address.
1540
+ */
1541
+ address: string;
1542
+ }): CancelablePromise<ListAddressChainsResponse>;
1543
+ /**
1544
+ * List chains
1545
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1546
+ * @returns ListChainsResponse Successful response
1547
+ * @throws ApiError
1548
+ */
1549
+ supportedChains({ network, feature, }: {
1550
+ /**
1551
+ * Either mainnet or testnet/fuji.
1552
+ */
1553
+ network?: Network;
1554
+ /**
1555
+ * Filter by feature.
1556
+ */
1557
+ feature?: ApiFeature;
1558
+ }): CancelablePromise<ListChainsResponse>;
1559
+ /**
1560
+ * Get chain information
1561
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1562
+ * @returns GetChainResponse Successful response
1563
+ * @throws ApiError
1158
1564
  */
1159
1565
  getChainInfo({ chainId, }: {
1160
1566
  /**
@@ -1163,9 +1569,11 @@ declare class EvmChainsService {
1163
1569
  chainId: string;
1164
1570
  }): CancelablePromise<GetChainResponse>;
1165
1571
  /**
1166
- * Get chains for address
1167
- * Gets the list of chains an address has interacted with.
1168
- * @returns ListChainsResponse Successful response
1572
+ * @deprecated
1573
+ * **[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.
1574
+ *
1575
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1576
+ * @returns ListAddressChainsResponse Successful response
1169
1577
  * @throws ApiError
1170
1578
  */
1171
1579
  getAddressChains({ address, }: {
@@ -1173,9 +1581,69 @@ declare class EvmChainsService {
1173
1581
  * A wallet address.
1174
1582
  */
1175
1583
  address: string;
1176
- }): CancelablePromise<ListChainsResponse>;
1584
+ }): CancelablePromise<ListAddressChainsResponse>;
1585
+ /**
1586
+ * @deprecated
1587
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1588
+ *
1589
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1590
+ * @returns ListNativeTransactionsResponse Successful response
1591
+ * @throws ApiError
1592
+ */
1593
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1594
+ /**
1595
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1596
+ */
1597
+ pageToken?: string;
1598
+ /**
1599
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1600
+ */
1601
+ pageSize?: number;
1602
+ /**
1603
+ * Either mainnet or testnet/fuji.
1604
+ */
1605
+ network?: Network;
1606
+ /**
1607
+ * A status filter for listed transactions.
1608
+ */
1609
+ status?: TransactionStatus;
1610
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1611
+ /**
1612
+ * @deprecated
1613
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1614
+ *
1615
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1616
+ * @returns ListEvmBlocksResponse Successful response
1617
+ * @throws ApiError
1618
+ */
1619
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1620
+ /**
1621
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1622
+ */
1623
+ pageToken?: string;
1624
+ /**
1625
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1626
+ */
1627
+ pageSize?: number;
1628
+ /**
1629
+ * Either mainnet or testnet/fuji.
1630
+ */
1631
+ network?: Network;
1632
+ }): CancelablePromise<ListEvmBlocksResponse>;
1177
1633
  }
1178
1634
 
1635
+ type ContractDeploymentDetails = {
1636
+ txHash: string;
1637
+ /**
1638
+ * The address that initiated the transaction which deployed this contract.
1639
+ */
1640
+ deployerAddress: string;
1641
+ /**
1642
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1643
+ */
1644
+ deployerContractAddress?: string;
1645
+ };
1646
+
1179
1647
  type ImageAsset = {
1180
1648
  assetId?: string;
1181
1649
  /**
@@ -1214,120 +1682,6 @@ type ResourceLink = {
1214
1682
  url: string;
1215
1683
  };
1216
1684
 
1217
- type ContractSubmissionErc1155 = {
1218
- description?: string;
1219
- officialSite?: string;
1220
- email?: string;
1221
- logoAsset?: ImageAsset;
1222
- bannerAsset?: ImageAsset;
1223
- color?: string;
1224
- resourceLinks?: Array<ResourceLink>;
1225
- tags?: Array<string>;
1226
- /**
1227
- * The contract name.
1228
- */
1229
- name: string;
1230
- ercType: ContractSubmissionErc1155.ercType;
1231
- /**
1232
- * The contract symbol.
1233
- */
1234
- symbol: string;
1235
- pricingProviders?: PricingProviders;
1236
- };
1237
- declare namespace ContractSubmissionErc1155 {
1238
- enum ercType {
1239
- ERC_1155 = "ERC-1155"
1240
- }
1241
- }
1242
-
1243
- type ContractSubmissionErc20 = {
1244
- description?: string;
1245
- officialSite?: string;
1246
- email?: string;
1247
- logoAsset?: ImageAsset;
1248
- bannerAsset?: ImageAsset;
1249
- color?: string;
1250
- resourceLinks?: Array<ResourceLink>;
1251
- tags?: Array<string>;
1252
- /**
1253
- * The contract name.
1254
- */
1255
- name: string;
1256
- ercType: ContractSubmissionErc20.ercType;
1257
- /**
1258
- * The contract symbol.
1259
- */
1260
- symbol: string;
1261
- pricingProviders?: PricingProviders;
1262
- };
1263
- declare namespace ContractSubmissionErc20 {
1264
- enum ercType {
1265
- ERC_20 = "ERC-20"
1266
- }
1267
- }
1268
-
1269
- type ContractSubmissionErc721 = {
1270
- description?: string;
1271
- officialSite?: string;
1272
- email?: string;
1273
- logoAsset?: ImageAsset;
1274
- bannerAsset?: ImageAsset;
1275
- color?: string;
1276
- resourceLinks?: Array<ResourceLink>;
1277
- tags?: Array<string>;
1278
- /**
1279
- * The contract name.
1280
- */
1281
- name: string;
1282
- ercType: ContractSubmissionErc721.ercType;
1283
- /**
1284
- * The contract symbol.
1285
- */
1286
- symbol: string;
1287
- };
1288
- declare namespace ContractSubmissionErc721 {
1289
- enum ercType {
1290
- ERC_721 = "ERC-721"
1291
- }
1292
- }
1293
-
1294
- type ContractSubmissionUnknown = {
1295
- description?: string;
1296
- officialSite?: string;
1297
- email?: string;
1298
- logoAsset?: ImageAsset;
1299
- bannerAsset?: ImageAsset;
1300
- color?: string;
1301
- resourceLinks?: Array<ResourceLink>;
1302
- tags?: Array<string>;
1303
- /**
1304
- * The contract name.
1305
- */
1306
- name: string;
1307
- ercType: ContractSubmissionUnknown.ercType;
1308
- };
1309
- declare namespace ContractSubmissionUnknown {
1310
- enum ercType {
1311
- UNKNOWN = "UNKNOWN"
1312
- }
1313
- }
1314
-
1315
- type ContractSubmissionBody = {
1316
- contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
1317
- };
1318
-
1319
- type ContractDeploymentDetails = {
1320
- txHash: string;
1321
- /**
1322
- * The address that initiated the transaction which deployed this contract.
1323
- */
1324
- deployerAddress: string;
1325
- /**
1326
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1327
- */
1328
- deployerContractAddress?: string;
1329
- };
1330
-
1331
1685
  type Erc1155Contract = {
1332
1686
  /**
1333
1687
  * The contract name.
@@ -1345,7 +1699,7 @@ type Erc1155Contract = {
1345
1699
  * A wallet or contract address in mixed-case checksum encoding.
1346
1700
  */
1347
1701
  address: string;
1348
- deploymentDetails: ContractDeploymentDetails;
1702
+ deploymentDetails?: ContractDeploymentDetails;
1349
1703
  ercType: Erc1155Contract.ercType;
1350
1704
  /**
1351
1705
  * The contract symbol.
@@ -1376,7 +1730,7 @@ type Erc20Contract = {
1376
1730
  * A wallet or contract address in mixed-case checksum encoding.
1377
1731
  */
1378
1732
  address: string;
1379
- deploymentDetails: ContractDeploymentDetails;
1733
+ deploymentDetails?: ContractDeploymentDetails;
1380
1734
  ercType: Erc20Contract.ercType;
1381
1735
  /**
1382
1736
  * The contract symbol.
@@ -1411,7 +1765,7 @@ type Erc721Contract = {
1411
1765
  * A wallet or contract address in mixed-case checksum encoding.
1412
1766
  */
1413
1767
  address: string;
1414
- deploymentDetails: ContractDeploymentDetails;
1768
+ deploymentDetails?: ContractDeploymentDetails;
1415
1769
  ercType: Erc721Contract.ercType;
1416
1770
  /**
1417
1771
  * The contract symbol.
@@ -1441,7 +1795,7 @@ type UnknownContract = {
1441
1795
  * A wallet or contract address in mixed-case checksum encoding.
1442
1796
  */
1443
1797
  address: string;
1444
- deploymentDetails: ContractDeploymentDetails;
1798
+ deploymentDetails?: ContractDeploymentDetails;
1445
1799
  ercType: UnknownContract.ercType;
1446
1800
  };
1447
1801
  declare namespace UnknownContract {
@@ -1450,10 +1804,6 @@ declare namespace UnknownContract {
1450
1804
  }
1451
1805
  }
1452
1806
 
1453
- type UpdateContractResponse = {
1454
- contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1455
- };
1456
-
1457
1807
  declare class EvmContractsService {
1458
1808
  readonly httpRequest: BaseHttpRequest;
1459
1809
  constructor(httpRequest: BaseHttpRequest);
@@ -1473,23 +1823,6 @@ declare class EvmContractsService {
1473
1823
  */
1474
1824
  address: string;
1475
1825
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1476
- /**
1477
- * Update contract information
1478
- * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1479
- * @returns UpdateContractResponse Successful response
1480
- * @throws ApiError
1481
- */
1482
- updateContractInfo({ chainId, address, requestBody, }: {
1483
- /**
1484
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1485
- */
1486
- chainId: string;
1487
- /**
1488
- * Contract address on the relevant chain.
1489
- */
1490
- address: string;
1491
- requestBody: ContractSubmissionBody;
1492
- }): CancelablePromise<UpdateContractResponse>;
1493
1826
  }
1494
1827
 
1495
1828
  type Erc1155Token = {
@@ -1508,29 +1841,6 @@ declare namespace Erc1155Token {
1508
1841
  }
1509
1842
  }
1510
1843
 
1511
- type RichAddress = {
1512
- /**
1513
- * The contract name.
1514
- */
1515
- name?: string;
1516
- /**
1517
- * The contract symbol.
1518
- */
1519
- symbol?: string;
1520
- /**
1521
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1522
- */
1523
- decimals?: number;
1524
- /**
1525
- * The logo uri for the address.
1526
- */
1527
- logoUri?: string;
1528
- /**
1529
- * A wallet or contract address in mixed-case checksum encoding.
1530
- */
1531
- address: string;
1532
- };
1533
-
1534
1844
  type Erc1155TransferDetails = {
1535
1845
  from: RichAddress;
1536
1846
  to: RichAddress;
@@ -1605,35 +1915,14 @@ type Erc721Token = {
1605
1915
  declare namespace Erc721Token {
1606
1916
  enum ercType {
1607
1917
  ERC_721 = "ERC-721"
1608
- }
1609
- }
1610
-
1611
- type Erc721TransferDetails = {
1612
- from: RichAddress;
1613
- to: RichAddress;
1614
- logIndex: number;
1615
- erc721Token: Erc721Token;
1616
- };
1617
-
1618
- /**
1619
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1620
- */
1621
- declare enum TransactionMethodType {
1622
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1623
- CONTRACT_CALL = "CONTRACT_CALL",
1624
- CONTRACT_CREATION = "CONTRACT_CREATION"
1625
- }
1626
-
1627
- type Method = {
1628
- callType: TransactionMethodType;
1629
- /**
1630
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1631
- */
1632
- methodHash: string;
1633
- /**
1634
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1635
- */
1636
- methodName?: string;
1918
+ }
1919
+ }
1920
+
1921
+ type Erc721TransferDetails = {
1922
+ from: RichAddress;
1923
+ to: RichAddress;
1924
+ logIndex: number;
1925
+ erc721Token: Erc721Token;
1637
1926
  };
1638
1927
 
1639
1928
  type FullNativeTransactionDetails = {
@@ -1642,13 +1931,25 @@ type FullNativeTransactionDetails = {
1642
1931
  */
1643
1932
  blockNumber: string;
1644
1933
  /**
1645
- * The block finality timestamp.
1934
+ * The block creation (proposal) timestamp in seconds
1646
1935
  */
1647
1936
  blockTimestamp: number;
1937
+ /**
1938
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1939
+ */
1940
+ blockTimestampMilliseconds?: number;
1941
+ /**
1942
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1943
+ */
1944
+ blockMinDelayExcess?: number;
1648
1945
  /**
1649
1946
  * The block hash identifier.
1650
1947
  */
1651
1948
  blockHash: string;
1949
+ /**
1950
+ * The EVM chain ID on which the transaction occured.
1951
+ */
1952
+ chainId: string;
1652
1953
  /**
1653
1954
  * The index at which the transaction occured in the block (0-indexed).
1654
1955
  */
@@ -1699,6 +2000,7 @@ declare enum InternalTransactionOpCall {
1699
2000
  CALL = "CALL",
1700
2001
  CREATE = "CREATE",
1701
2002
  CREATE2 = "CREATE2",
2003
+ CREATE3 = "CREATE3",
1702
2004
  CALLCODE = "CALLCODE",
1703
2005
  DELEGATECALL = "DELEGATECALL",
1704
2006
  STATICCALL = "STATICCALL"
@@ -1740,11 +2042,11 @@ type TeleporterMessageInfo = {
1740
2042
  /**
1741
2043
  * chain id of the source chain. valid only for destination transactions
1742
2044
  */
1743
- sourceChainId?: Record<string, any>;
2045
+ sourceChainId?: string;
1744
2046
  /**
1745
2047
  * chain id of the destination chain. valid only for source transactions
1746
2048
  */
1747
- destinationChainId?: Record<string, any>;
2049
+ destinationChainId?: string;
1748
2050
  };
1749
2051
 
1750
2052
  type GetTransactionResponse = {
@@ -1761,7 +2063,7 @@ type GetTransactionResponse = {
1761
2063
  */
1762
2064
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1763
2065
  /**
1764
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2066
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1765
2067
  */
1766
2068
  internalTransactions?: Array<InternalTransactionDetails>;
1767
2069
  networkTokenDetails: NetworkTokenDetails;
@@ -1786,9 +2088,13 @@ type Erc1155Transfer = {
1786
2088
  */
1787
2089
  blockNumber: string;
1788
2090
  /**
1789
- * The block finality timestamp.
2091
+ * The block creation (proposal) timestamp in seconds
1790
2092
  */
1791
2093
  blockTimestamp: number;
2094
+ /**
2095
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2096
+ */
2097
+ blockTimestampMilliseconds?: number;
1792
2098
  /**
1793
2099
  * The block hash identifier.
1794
2100
  */
@@ -1818,9 +2124,13 @@ type Erc20Transfer = {
1818
2124
  */
1819
2125
  blockNumber: string;
1820
2126
  /**
1821
- * The block finality timestamp.
2127
+ * The block creation (proposal) timestamp in seconds
1822
2128
  */
1823
2129
  blockTimestamp: number;
2130
+ /**
2131
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2132
+ */
2133
+ blockTimestampMilliseconds?: number;
1824
2134
  /**
1825
2135
  * The block hash identifier.
1826
2136
  */
@@ -1850,9 +2160,13 @@ type Erc721Transfer = {
1850
2160
  */
1851
2161
  blockNumber: string;
1852
2162
  /**
1853
- * The block finality timestamp.
2163
+ * The block creation (proposal) timestamp in seconds
1854
2164
  */
1855
2165
  blockTimestamp: number;
2166
+ /**
2167
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2168
+ */
2169
+ blockTimestampMilliseconds?: number;
1856
2170
  /**
1857
2171
  * The block hash identifier.
1858
2172
  */
@@ -1881,9 +2195,13 @@ type InternalTransaction = {
1881
2195
  */
1882
2196
  blockNumber: string;
1883
2197
  /**
1884
- * The block finality timestamp.
2198
+ * The block creation (proposal) timestamp in seconds
1885
2199
  */
1886
2200
  blockTimestamp: number;
2201
+ /**
2202
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2203
+ */
2204
+ blockTimestampMilliseconds?: number;
1887
2205
  /**
1888
2206
  * The block hash identifier.
1889
2207
  */
@@ -1912,66 +2230,90 @@ type ListInternalTransactionsResponse = {
1912
2230
  transactions: Array<InternalTransaction>;
1913
2231
  };
1914
2232
 
1915
- type NativeTransaction = {
2233
+ type TransactionDetails = {
1916
2234
  /**
1917
- * The block number on the chain.
2235
+ * The native (top-level) transaction details.
1918
2236
  */
1919
- blockNumber: string;
2237
+ nativeTransaction: NativeTransaction;
1920
2238
  /**
1921
- * The block finality timestamp.
2239
+ * The list of ERC-20 transfers.
1922
2240
  */
1923
- blockTimestamp: number;
2241
+ erc20Transfers?: Array<Erc20TransferDetails>;
1924
2242
  /**
1925
- * The block hash identifier.
2243
+ * The list of ERC-721 transfers.
1926
2244
  */
1927
- blockHash: string;
2245
+ erc721Transfers?: Array<Erc721TransferDetails>;
1928
2246
  /**
1929
- * The index at which the transaction occured in the block (0-indexed).
2247
+ * The list of ERC-1155 transfers.
1930
2248
  */
1931
- blockIndex: number;
2249
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1932
2250
  /**
1933
- * The transaction hash identifier.
2251
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1934
2252
  */
1935
- txHash: string;
2253
+ internalTransactions?: Array<InternalTransactionDetails>;
2254
+ };
2255
+
2256
+ type ListTransactionDetailsResponse = {
1936
2257
  /**
1937
- * The transaction status, which is either 0 (failed) or 1 (successful).
2258
+ * 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.
1938
2259
  */
1939
- txStatus: string;
2260
+ nextPageToken?: string;
2261
+ transactions: Array<TransactionDetails>;
2262
+ };
2263
+
2264
+ type Erc20TokenV2 = {
1940
2265
  /**
1941
- * The transaction type.
2266
+ * A wallet or contract address in mixed-case checksum encoding.
1942
2267
  */
1943
- txType: number;
2268
+ address: string;
1944
2269
  /**
1945
- * The gas limit set for the transaction.
2270
+ * The contract name.
1946
2271
  */
1947
- gasLimit: string;
2272
+ name: string;
1948
2273
  /**
1949
- * The amount of gas used.
2274
+ * The contract symbol.
1950
2275
  */
1951
- gasUsed: string;
2276
+ symbol: string;
1952
2277
  /**
1953
- * The gas price denominated by the number of decimals of the native token.
2278
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1954
2279
  */
1955
- gasPrice: string;
2280
+ decimals: number;
1956
2281
  /**
1957
- * The nonce used by the sender of the transaction.
2282
+ * The logo uri for the address.
1958
2283
  */
1959
- nonce: string;
1960
- from: RichAddress;
1961
- to: RichAddress;
1962
- method?: Method;
1963
- value: string;
2284
+ logoUri?: string;
2285
+ ercType: Erc20TokenV2.ercType;
2286
+ /**
2287
+ * The token price, if available.
2288
+ */
2289
+ price?: Money;
2290
+ /**
2291
+ * 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.
2292
+ */
2293
+ tokenReputation: Erc20TokenV2.tokenReputation;
1964
2294
  };
1965
-
1966
- type ListNativeTransactionsResponse = {
2295
+ declare namespace Erc20TokenV2 {
2296
+ enum ercType {
2297
+ ERC_20 = "ERC-20"
2298
+ }
1967
2299
  /**
1968
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2300
+ * 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.
1969
2301
  */
1970
- nextPageToken?: string;
1971
- transactions: Array<NativeTransaction>;
2302
+ enum tokenReputation {
2303
+ MALICIOUS = "Malicious",
2304
+ BENIGN = "Benign"
2305
+ }
2306
+ }
2307
+
2308
+ type Erc20TransferDetailsV2 = {
2309
+ from: RichAddress;
2310
+ to: RichAddress;
2311
+ logIndex: number;
2312
+ value: string;
2313
+ erc20Token: Erc20TokenV2;
1972
2314
  };
1973
2315
 
1974
- type TransactionDetails = {
2316
+ type TransactionDetailsV2 = {
1975
2317
  /**
1976
2318
  * The native (top-level) transaction details.
1977
2319
  */
@@ -1979,7 +2321,7 @@ type TransactionDetails = {
1979
2321
  /**
1980
2322
  * The list of ERC-20 transfers.
1981
2323
  */
1982
- erc20Transfers?: Array<Erc20TransferDetails>;
2324
+ erc20Transfers?: Array<Erc20TransferDetailsV2>;
1983
2325
  /**
1984
2326
  * The list of ERC-721 transfers.
1985
2327
  */
@@ -1989,17 +2331,17 @@ type TransactionDetails = {
1989
2331
  */
1990
2332
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1991
2333
  /**
1992
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2334
+ * 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.
1993
2335
  */
1994
2336
  internalTransactions?: Array<InternalTransactionDetails>;
1995
2337
  };
1996
2338
 
1997
- type ListTransactionDetailsResponse = {
2339
+ type ListTransactionDetailsResponseV2 = {
1998
2340
  /**
1999
2341
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2000
2342
  */
2001
2343
  nextPageToken?: string;
2002
- transactions: Array<TransactionDetails>;
2344
+ transactions: Array<TransactionDetailsV2>;
2003
2345
  };
2004
2346
 
2005
2347
  type ListTransfersResponse = {
@@ -2015,14 +2357,33 @@ declare enum SortOrder {
2015
2357
  DESC = "desc"
2016
2358
  }
2017
2359
 
2018
- declare enum TransactionStatus {
2019
- FAILED = "failed",
2020
- SUCCESS = "success"
2021
- }
2022
-
2023
2360
  declare class EvmTransactionsService {
2024
2361
  readonly httpRequest: BaseHttpRequest;
2025
2362
  constructor(httpRequest: BaseHttpRequest);
2363
+ /**
2364
+ * List the latest transactions across all supported EVM chains
2365
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2366
+ * @returns ListNativeTransactionsResponse Successful response
2367
+ * @throws ApiError
2368
+ */
2369
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2370
+ /**
2371
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2372
+ */
2373
+ pageToken?: string;
2374
+ /**
2375
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2376
+ */
2377
+ pageSize?: number;
2378
+ /**
2379
+ * Either mainnet or testnet/fuji.
2380
+ */
2381
+ network?: Network;
2382
+ /**
2383
+ * A status filter for listed transactions.
2384
+ */
2385
+ status?: TransactionStatus;
2386
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2026
2387
  /**
2027
2388
  * Get deployment transaction
2028
2389
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2049,7 +2410,140 @@ declare class EvmTransactionsService {
2049
2410
  * @returns ListContractsResponse Successful response
2050
2411
  * @throws ApiError
2051
2412
  */
2052
- listContractDeployments({ chainId, address, pageToken, pageSize, }: {
2413
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
2414
+ /**
2415
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2416
+ */
2417
+ chainId: string;
2418
+ /**
2419
+ * A wallet address.
2420
+ */
2421
+ address: string;
2422
+ /**
2423
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2424
+ */
2425
+ pageToken?: string;
2426
+ /**
2427
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2428
+ */
2429
+ pageSize?: number;
2430
+ }): CancelablePromise<ListContractsResponse>;
2431
+ /**
2432
+ * List ERC transfers
2433
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
2434
+ * @returns ListTransfersResponse Successful response
2435
+ * @throws ApiError
2436
+ */
2437
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2438
+ /**
2439
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2440
+ */
2441
+ chainId: string;
2442
+ /**
2443
+ * A wallet address.
2444
+ */
2445
+ address: string;
2446
+ /**
2447
+ * 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.
2448
+ */
2449
+ startBlock?: number;
2450
+ /**
2451
+ * 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.
2452
+ */
2453
+ endBlock?: number;
2454
+ /**
2455
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2456
+ */
2457
+ pageToken?: string;
2458
+ /**
2459
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2460
+ */
2461
+ pageSize?: number;
2462
+ }): CancelablePromise<ListTransfersResponse>;
2463
+ /**
2464
+ * List transactions
2465
+ * 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.
2466
+ *
2467
+ * Filterable by block ranges.
2468
+ * @returns ListTransactionDetailsResponse Successful response
2469
+ * @throws ApiError
2470
+ */
2471
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
2472
+ /**
2473
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2474
+ */
2475
+ chainId: string;
2476
+ /**
2477
+ * A wallet address.
2478
+ */
2479
+ address: string;
2480
+ /**
2481
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2482
+ */
2483
+ pageToken?: string;
2484
+ /**
2485
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2486
+ */
2487
+ pageSize?: number;
2488
+ /**
2489
+ * 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.
2490
+ */
2491
+ startBlock?: number;
2492
+ /**
2493
+ * 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.
2494
+ */
2495
+ endBlock?: number;
2496
+ /**
2497
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2498
+ */
2499
+ sortOrder?: SortOrder;
2500
+ }): CancelablePromise<ListTransactionDetailsResponse>;
2501
+ /**
2502
+ * List transactions v2
2503
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers (with token reputation), 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.
2504
+ *
2505
+ * Filterable by block ranges.
2506
+ * @returns ListTransactionDetailsResponseV2 Successful response
2507
+ * @throws ApiError
2508
+ */
2509
+ listTransactionsV2({ chainId, address, pageToken, pageSize, startBlock, endBlock, filterSpamTokens, sortOrder, }: {
2510
+ /**
2511
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2512
+ */
2513
+ chainId: string;
2514
+ /**
2515
+ * A wallet address.
2516
+ */
2517
+ address: string;
2518
+ /**
2519
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2520
+ */
2521
+ pageToken?: string;
2522
+ /**
2523
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2524
+ */
2525
+ pageSize?: number;
2526
+ /**
2527
+ * 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.
2528
+ */
2529
+ startBlock?: number;
2530
+ /**
2531
+ * 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.
2532
+ */
2533
+ endBlock?: number;
2534
+ filterSpamTokens?: boolean;
2535
+ /**
2536
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2537
+ */
2538
+ sortOrder?: SortOrder;
2539
+ }): CancelablePromise<ListTransactionDetailsResponseV2>;
2540
+ /**
2541
+ * List native transactions
2542
+ * Lists native transactions for an address. Filterable by block range.
2543
+ * @returns ListNativeTransactionsResponse Successful response
2544
+ * @throws ApiError
2545
+ */
2546
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2053
2547
  /**
2054
2548
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2055
2549
  */
@@ -2058,6 +2552,14 @@ declare class EvmTransactionsService {
2058
2552
  * A wallet address.
2059
2553
  */
2060
2554
  address: string;
2555
+ /**
2556
+ * 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.
2557
+ */
2558
+ startBlock?: number;
2559
+ /**
2560
+ * 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.
2561
+ */
2562
+ endBlock?: number;
2061
2563
  /**
2062
2564
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2063
2565
  */
@@ -2066,14 +2568,14 @@ declare class EvmTransactionsService {
2066
2568
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2067
2569
  */
2068
2570
  pageSize?: number;
2069
- }): CancelablePromise<ListContractsResponse>;
2571
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2070
2572
  /**
2071
- * List ERC transfers
2072
- * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
2073
- * @returns ListTransfersResponse Successful response
2573
+ * List ERC-20 transfers
2574
+ * Lists ERC-20 transfers for an address. Filterable by block range.
2575
+ * @returns ListErc20TransactionsResponse Successful response
2074
2576
  * @throws ApiError
2075
2577
  */
2076
- listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2578
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2077
2579
  /**
2078
2580
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2079
2581
  */
@@ -2098,16 +2600,14 @@ declare class EvmTransactionsService {
2098
2600
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2099
2601
  */
2100
2602
  pageSize?: number;
2101
- }): CancelablePromise<ListTransfersResponse>;
2603
+ }): CancelablePromise<ListErc20TransactionsResponse>;
2102
2604
  /**
2103
- * List transactions
2104
- * 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.
2105
- *
2106
- * Filterable by block ranges.
2107
- * @returns ListTransactionDetailsResponse Successful response
2605
+ * List ERC-721 transfers
2606
+ * Lists ERC-721 transfers for an address. Filterable by block range.
2607
+ * @returns ListErc721TransactionsResponse Successful response
2108
2608
  * @throws ApiError
2109
2609
  */
2110
- listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
2610
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2111
2611
  /**
2112
2612
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2113
2613
  */
@@ -2116,14 +2616,6 @@ declare class EvmTransactionsService {
2116
2616
  * A wallet address.
2117
2617
  */
2118
2618
  address: string;
2119
- /**
2120
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2121
- */
2122
- pageToken?: string;
2123
- /**
2124
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2125
- */
2126
- pageSize?: number;
2127
2619
  /**
2128
2620
  * 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.
2129
2621
  */
@@ -2133,17 +2625,21 @@ declare class EvmTransactionsService {
2133
2625
  */
2134
2626
  endBlock?: number;
2135
2627
  /**
2136
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2628
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2137
2629
  */
2138
- sortOrder?: SortOrder;
2139
- }): CancelablePromise<ListTransactionDetailsResponse>;
2630
+ pageToken?: string;
2631
+ /**
2632
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2633
+ */
2634
+ pageSize?: number;
2635
+ }): CancelablePromise<ListErc721TransactionsResponse>;
2140
2636
  /**
2141
- * List native transactions
2142
- * Lists native transactions for an address. Filterable by block range.
2143
- * @returns ListNativeTransactionsResponse Successful response
2637
+ * List ERC-1155 transfers
2638
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2639
+ * @returns ListErc1155TransactionsResponse Successful response
2144
2640
  * @throws ApiError
2145
2641
  */
2146
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2642
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2147
2643
  /**
2148
2644
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2149
2645
  */
@@ -2168,14 +2664,16 @@ declare class EvmTransactionsService {
2168
2664
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2169
2665
  */
2170
2666
  pageSize?: number;
2171
- }): CancelablePromise<ListNativeTransactionsResponse>;
2667
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
2172
2668
  /**
2173
- * List ERC-20 transfers
2174
- * Lists ERC-20 transfers for an address. Filterable by block range.
2175
- * @returns ListErc20TransactionsResponse Successful response
2669
+ * List internal transactions
2670
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2671
+ *
2672
+ * 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.
2673
+ * @returns ListInternalTransactionsResponse Successful response
2176
2674
  * @throws ApiError
2177
2675
  */
2178
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2676
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2179
2677
  /**
2180
2678
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2181
2679
  */
@@ -2200,30 +2698,58 @@ declare class EvmTransactionsService {
2200
2698
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2201
2699
  */
2202
2700
  pageSize?: number;
2203
- }): CancelablePromise<ListErc20TransactionsResponse>;
2701
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2204
2702
  /**
2205
- * List ERC-721 transfers
2206
- * Lists ERC-721 transfers for an address. Filterable by block range.
2207
- * @returns ListErc721TransactionsResponse Successful response
2703
+ * Get transaction
2704
+ * Gets the details of a single transaction.
2705
+ * @returns GetTransactionResponse Successful response
2208
2706
  * @throws ApiError
2209
2707
  */
2210
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2708
+ getTransaction({ chainId, txHash, }: {
2211
2709
  /**
2212
2710
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2213
2711
  */
2214
2712
  chainId: string;
2215
2713
  /**
2216
- * A wallet address.
2714
+ * A transaction hash.
2217
2715
  */
2218
- address: string;
2716
+ txHash: string;
2717
+ }): CancelablePromise<GetTransactionResponse>;
2718
+ /**
2719
+ * List transactions for a block
2720
+ * Lists the transactions that occured in a given block.
2721
+ * @returns ListNativeTransactionsResponse Successful response
2722
+ * @throws ApiError
2723
+ */
2724
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2219
2725
  /**
2220
- * 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.
2726
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2221
2727
  */
2222
- startBlock?: number;
2728
+ chainId: string;
2223
2729
  /**
2224
- * 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.
2730
+ * A block identifier which is either a block number or the block hash.
2225
2731
  */
2226
- endBlock?: number;
2732
+ blockId: string;
2733
+ /**
2734
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2735
+ */
2736
+ pageToken?: string;
2737
+ /**
2738
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2739
+ */
2740
+ pageSize?: number;
2741
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2742
+ /**
2743
+ * List latest transactions
2744
+ * Lists the latest transactions. Filterable by status.
2745
+ * @returns ListNativeTransactionsResponse Successful response
2746
+ * @throws ApiError
2747
+ */
2748
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2749
+ /**
2750
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2751
+ */
2752
+ chainId: string;
2227
2753
  /**
2228
2754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2229
2755
  */
@@ -2232,30 +2758,218 @@ declare class EvmTransactionsService {
2232
2758
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2233
2759
  */
2234
2760
  pageSize?: number;
2235
- }): CancelablePromise<ListErc721TransactionsResponse>;
2761
+ /**
2762
+ * A status filter for listed transactions.
2763
+ */
2764
+ status?: TransactionStatus;
2765
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2766
+ }
2767
+
2768
+ type HealthIndicatorResultDto = {
2769
+ /**
2770
+ * Status of the health indicator.
2771
+ */
2772
+ status?: HealthIndicatorResultDto.status;
2773
+ };
2774
+ declare namespace HealthIndicatorResultDto {
2775
+ /**
2776
+ * Status of the health indicator.
2777
+ */
2778
+ enum status {
2779
+ UP = "up",
2780
+ DOWN = "down"
2781
+ }
2782
+ }
2783
+
2784
+ type HealthCheckResultDto = {
2785
+ status?: HealthCheckResultDto.status;
2786
+ info?: any | null;
2787
+ error?: any | null;
2788
+ details?: Record<string, HealthIndicatorResultDto>;
2789
+ };
2790
+ declare namespace HealthCheckResultDto {
2791
+ enum status {
2792
+ ERROR = "error",
2793
+ OK = "ok",
2794
+ SHUTTING_DOWN = "shutting_down"
2795
+ }
2796
+ }
2797
+
2798
+ declare class HealthCheckService {
2799
+ readonly httpRequest: BaseHttpRequest;
2800
+ constructor(httpRequest: BaseHttpRequest);
2801
+ /**
2802
+ * Get the health of the service
2803
+ * Check the health of the service. This checks the read and write health of the database and cache.
2804
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2805
+ * @throws ApiError
2806
+ */
2807
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2808
+ /**
2809
+ * Get the liveliness of the service (reads only)
2810
+ * Check the liveliness of the service (reads only).
2811
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2812
+ * @throws ApiError
2813
+ */
2814
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2815
+ }
2816
+
2817
+ type IcmDestinationTransaction = {
2818
+ txHash: string;
2819
+ timestamp: number;
2820
+ gasSpent: string;
2821
+ rewardRedeemer: string;
2822
+ delivererAddress: string;
2823
+ };
2824
+
2825
+ type IcmReceipt = {
2826
+ receivedMessageNonce: string;
2827
+ relayerRewardAddress: string;
2828
+ };
2829
+
2830
+ type IcmRewardDetails = {
2831
+ /**
2832
+ * A wallet or contract address in mixed-case checksum encoding.
2833
+ */
2834
+ address: string;
2835
+ /**
2836
+ * The contract name.
2837
+ */
2838
+ name: string;
2839
+ /**
2840
+ * The contract symbol.
2841
+ */
2842
+ symbol: string;
2843
+ /**
2844
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2845
+ */
2846
+ decimals: number;
2847
+ /**
2848
+ * The logo uri for the address.
2849
+ */
2850
+ logoUri?: string;
2851
+ ercType: IcmRewardDetails.ercType;
2852
+ /**
2853
+ * The token price, if available.
2854
+ */
2855
+ price?: Money;
2856
+ value: string;
2857
+ };
2858
+ declare namespace IcmRewardDetails {
2859
+ enum ercType {
2860
+ ERC_20 = "ERC-20"
2861
+ }
2862
+ }
2863
+
2864
+ type IcmSourceTransaction = {
2865
+ txHash: string;
2866
+ timestamp: number;
2867
+ gasSpent: string;
2868
+ };
2869
+
2870
+ type DeliveredIcmMessage = {
2871
+ messageId: string;
2872
+ icmContractAddress: string;
2873
+ sourceBlockchainId: string;
2874
+ destinationBlockchainId: string;
2875
+ sourceEvmChainId: string;
2876
+ destinationEvmChainId: string;
2877
+ messageNonce: string;
2878
+ from: string;
2879
+ to: string;
2880
+ data?: string;
2881
+ messageExecuted: boolean;
2882
+ receipts: Array<IcmReceipt>;
2883
+ receiptDelivered: boolean;
2884
+ rewardDetails: IcmRewardDetails;
2885
+ sourceTransaction: IcmSourceTransaction;
2886
+ destinationTransaction: IcmDestinationTransaction;
2887
+ status: DeliveredIcmMessage.status;
2888
+ };
2889
+ declare namespace DeliveredIcmMessage {
2890
+ enum status {
2891
+ DELIVERED = "delivered"
2892
+ }
2893
+ }
2894
+
2895
+ type DeliveredSourceNotIndexedIcmMessage = {
2896
+ messageId: string;
2897
+ icmContractAddress: string;
2898
+ sourceBlockchainId: string;
2899
+ destinationBlockchainId: string;
2900
+ sourceEvmChainId: string;
2901
+ destinationEvmChainId: string;
2902
+ messageNonce: string;
2903
+ from: string;
2904
+ to: string;
2905
+ data?: string;
2906
+ messageExecuted: boolean;
2907
+ receipts: Array<IcmReceipt>;
2908
+ receiptDelivered: boolean;
2909
+ rewardDetails: IcmRewardDetails;
2910
+ destinationTransaction: IcmDestinationTransaction;
2911
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2912
+ };
2913
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2914
+ enum status {
2915
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2916
+ }
2917
+ }
2918
+
2919
+ type PendingIcmMessage = {
2920
+ messageId: string;
2921
+ icmContractAddress: string;
2922
+ sourceBlockchainId: string;
2923
+ destinationBlockchainId: string;
2924
+ sourceEvmChainId: string;
2925
+ destinationEvmChainId: string;
2926
+ messageNonce: string;
2927
+ from: string;
2928
+ to: string;
2929
+ data?: string;
2930
+ messageExecuted: boolean;
2931
+ receipts: Array<IcmReceipt>;
2932
+ receiptDelivered: boolean;
2933
+ rewardDetails: IcmRewardDetails;
2934
+ sourceTransaction: IcmSourceTransaction;
2935
+ status: PendingIcmMessage.status;
2936
+ };
2937
+ declare namespace PendingIcmMessage {
2938
+ enum status {
2939
+ PENDING = "pending"
2940
+ }
2941
+ }
2942
+
2943
+ type ListIcmMessagesResponse = {
2944
+ /**
2945
+ * 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.
2946
+ */
2947
+ nextPageToken?: string;
2948
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2949
+ };
2950
+
2951
+ declare class InterchainMessagingService {
2952
+ readonly httpRequest: BaseHttpRequest;
2953
+ constructor(httpRequest: BaseHttpRequest);
2236
2954
  /**
2237
- * List ERC-1155 transfers
2238
- * Lists ERC-1155 transfers for an address. Filterable by block range.
2239
- * @returns ListErc1155TransactionsResponse Successful response
2955
+ * Get an ICM message
2956
+ * Gets an ICM message by teleporter message ID.
2957
+ * @returns any Successful response
2240
2958
  * @throws ApiError
2241
2959
  */
2242
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2243
- /**
2244
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2245
- */
2246
- chainId: string;
2247
- /**
2248
- * A wallet address.
2249
- */
2250
- address: string;
2251
- /**
2252
- * 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.
2253
- */
2254
- startBlock?: number;
2960
+ getIcmMessage({ messageId, }: {
2255
2961
  /**
2256
- * 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.
2962
+ * The teleporter message ID of the ICM message.
2257
2963
  */
2258
- endBlock?: number;
2964
+ messageId: string;
2965
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2966
+ /**
2967
+ * List ICM messages
2968
+ * Lists ICM messages. Ordered by timestamp in descending order.
2969
+ * @returns ListIcmMessagesResponse Successful response
2970
+ * @throws ApiError
2971
+ */
2972
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2259
2973
  /**
2260
2974
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2261
2975
  */
@@ -2264,84 +2978,42 @@ declare class EvmTransactionsService {
2264
2978
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2265
2979
  */
2266
2980
  pageSize?: number;
2267
- }): CancelablePromise<ListErc1155TransactionsResponse>;
2268
- /**
2269
- * List internal transactions
2270
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
2271
- *
2272
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2273
- * @returns ListInternalTransactionsResponse Successful response
2274
- * @throws ApiError
2275
- */
2276
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2277
- /**
2278
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2279
- */
2280
- chainId: string;
2281
- /**
2282
- * A wallet address.
2283
- */
2284
- address: string;
2285
- /**
2286
- * 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.
2287
- */
2288
- startBlock?: number;
2289
- /**
2290
- * 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.
2291
- */
2292
- endBlock?: number;
2293
2981
  /**
2294
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2982
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2295
2983
  */
2296
- pageToken?: string;
2984
+ sourceBlockchainId?: string;
2297
2985
  /**
2298
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2986
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2299
2987
  */
2300
- pageSize?: number;
2301
- }): CancelablePromise<ListInternalTransactionsResponse>;
2302
- /**
2303
- * Get transaction
2304
- * Gets the details of a single transaction.
2305
- * @returns GetTransactionResponse Successful response
2306
- * @throws ApiError
2307
- */
2308
- getTransaction({ chainId, txHash, }: {
2988
+ destinationBlockchainId?: string;
2309
2989
  /**
2310
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2990
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2311
2991
  */
2312
- chainId: string;
2992
+ blockchainId?: string;
2313
2993
  /**
2314
- * A transaction hash.
2994
+ * The address of the recipient of the ICM message.
2315
2995
  */
2316
- txHash: string;
2317
- }): CancelablePromise<GetTransactionResponse>;
2318
- /**
2319
- * List transactions for a block
2320
- * Lists the transactions that occured in a given block.
2321
- * @returns ListNativeTransactionsResponse Successful response
2322
- * @throws ApiError
2323
- */
2324
- getTransactionsForBlock({ chainId, blockId, }: {
2996
+ to?: string;
2325
2997
  /**
2326
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2998
+ * The address of the sender of the ICM message.
2327
2999
  */
2328
- chainId: string;
3000
+ from?: string;
2329
3001
  /**
2330
- * A block identifier which is either a block number or the block hash.
3002
+ * Either mainnet or testnet/fuji.
2331
3003
  */
2332
- blockId: string;
2333
- }): CancelablePromise<ListNativeTransactionsResponse>;
3004
+ network?: Network;
3005
+ }): CancelablePromise<ListIcmMessagesResponse>;
2334
3006
  /**
2335
- * List latest transactions
2336
- * Lists the latest transactions. Filterable by status.
2337
- * @returns ListNativeTransactionsResponse Successful response
3007
+ * List ICM messages by address
3008
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
3009
+ * @returns ListIcmMessagesResponse Successful response
2338
3010
  * @throws ApiError
2339
3011
  */
2340
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
3012
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2341
3013
  /**
2342
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3014
+ * An EVM address.
2343
3015
  */
2344
- chainId: string;
3016
+ address: string;
2345
3017
  /**
2346
3018
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2347
3019
  */
@@ -2351,26 +3023,10 @@ declare class EvmTransactionsService {
2351
3023
  */
2352
3024
  pageSize?: number;
2353
3025
  /**
2354
- * A status filter for listed transactions.
3026
+ * Either mainnet or testnet/fuji.
2355
3027
  */
2356
- status?: TransactionStatus;
2357
- }): CancelablePromise<ListNativeTransactionsResponse>;
2358
- }
2359
-
2360
- declare class HealthCheckService {
2361
- readonly httpRequest: BaseHttpRequest;
2362
- constructor(httpRequest: BaseHttpRequest);
2363
- /**
2364
- * Get the health of the service
2365
- * @returns any The Health Check is successful
2366
- * @throws ApiError
2367
- */
2368
- dataHealthCheck(): CancelablePromise<{
2369
- status?: string;
2370
- info?: Record<string, Record<string, string>> | null;
2371
- error?: Record<string, Record<string, string>> | null;
2372
- details?: Record<string, Record<string, string>>;
2373
- }>;
3028
+ network?: Network;
3029
+ }): CancelablePromise<ListIcmMessagesResponse>;
2374
3030
  }
2375
3031
 
2376
3032
  type ListNftTokens = {
@@ -2483,7 +3139,7 @@ declare enum PrimaryNetworkOperationType {
2483
3139
  type PrimaryNetworkOptions = {
2484
3140
  addresses?: Array<string>;
2485
3141
  cChainEvmAddresses?: Array<string>;
2486
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
3142
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2487
3143
  };
2488
3144
 
2489
3145
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -2538,47 +3194,308 @@ type OperationStatusResponse = {
2538
3194
  operationType: OperationType;
2539
3195
  operationStatus: OperationStatus;
2540
3196
  message?: string;
2541
- metadata: TransactionExportMetadata;
3197
+ metadata?: TransactionExportMetadata;
2542
3198
  createdAtTimestamp: number;
2543
3199
  updatedAtTimestamp: number;
2544
3200
  };
2545
3201
 
2546
- declare class OperationsService {
2547
- readonly httpRequest: BaseHttpRequest;
2548
- constructor(httpRequest: BaseHttpRequest);
3202
+ declare class OperationsService {
3203
+ readonly httpRequest: BaseHttpRequest;
3204
+ constructor(httpRequest: BaseHttpRequest);
3205
+ /**
3206
+ * Get operation
3207
+ * Gets operation details for the given operation id.
3208
+ * @returns OperationStatusResponse Successful response
3209
+ * @throws ApiError
3210
+ */
3211
+ getOperationResult({ operationId, }: {
3212
+ /**
3213
+ * UUID of given operation
3214
+ */
3215
+ operationId: string;
3216
+ }): CancelablePromise<OperationStatusResponse>;
3217
+ /**
3218
+ * Create transaction export operation
3219
+ * Trigger a transaction export operation with given parameters.
3220
+ *
3221
+ * 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.
3222
+ * @returns OperationStatusResponse Successful response
3223
+ * @throws ApiError
3224
+ */
3225
+ postTransactionExportJob({ requestBody, }: {
3226
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
3227
+ }): CancelablePromise<OperationStatusResponse>;
3228
+ }
3229
+
3230
+ type EvmGenesisAllocDto = {
3231
+ /**
3232
+ * Account balance in hex format
3233
+ */
3234
+ balance?: string;
3235
+ /**
3236
+ * Contract bytecode in hex format
3237
+ */
3238
+ code?: string;
3239
+ /**
3240
+ * Contract storage slots
3241
+ */
3242
+ storage?: Record<string, string>;
3243
+ };
3244
+
3245
+ type EvmGenesisAllowListConfigDto = {
3246
+ /**
3247
+ * Block timestamp
3248
+ */
3249
+ blockTimestamp?: number;
3250
+ /**
3251
+ * Admin addresses
3252
+ */
3253
+ adminAddresses?: Array<string>;
3254
+ /**
3255
+ * Manager addresses
3256
+ */
3257
+ managerAddresses?: Array<string>;
3258
+ /**
3259
+ * Enabled addresses
3260
+ */
3261
+ enabledAddresses?: Array<string>;
3262
+ };
3263
+
3264
+ type EvmGenesisFeeConfigDto = {
3265
+ /**
3266
+ * Base fee change denominator
3267
+ */
3268
+ baseFeeChangeDenominator?: number;
3269
+ /**
3270
+ * Block gas cost step
3271
+ */
3272
+ blockGasCostStep?: number;
3273
+ /**
3274
+ * Gas limit
3275
+ */
3276
+ gasLimit?: number;
3277
+ /**
3278
+ * Maximum block gas cost
3279
+ */
3280
+ maxBlockGasCost?: number;
3281
+ /**
3282
+ * Minimum base fee
3283
+ */
3284
+ minBaseFee?: number;
3285
+ /**
3286
+ * Minimum block gas cost
3287
+ */
3288
+ minBlockGasCost?: number;
3289
+ /**
3290
+ * Target block rate
3291
+ */
3292
+ targetBlockRate?: number;
3293
+ /**
3294
+ * Target gas
3295
+ */
3296
+ targetGas?: number;
3297
+ };
3298
+
3299
+ type EvmGenesisWarpConfigDto = {
3300
+ /**
3301
+ * Block timestamp
3302
+ */
3303
+ blockTimestamp?: number;
3304
+ /**
3305
+ * Quorum numerator
3306
+ */
3307
+ quorumNumerator?: number;
3308
+ /**
3309
+ * Require primary network signers
3310
+ */
3311
+ requirePrimaryNetworkSigners?: boolean;
3312
+ };
3313
+
3314
+ type EvmGenesisConfigDto = {
3315
+ /**
3316
+ * Berlin block number
3317
+ */
3318
+ berlinBlock?: number;
3319
+ /**
3320
+ * Byzantium block number
3321
+ */
3322
+ byzantiumBlock?: number;
3323
+ /**
3324
+ * Chain ID
3325
+ */
3326
+ chainId?: number;
3327
+ /**
3328
+ * Constantinople block number
3329
+ */
3330
+ constantinopleBlock?: number;
3331
+ /**
3332
+ * EIP-150 block number
3333
+ */
3334
+ eip150Block?: number;
3335
+ /**
3336
+ * EIP-150 hash
3337
+ */
3338
+ eip150Hash?: string;
3339
+ /**
3340
+ * EIP-155 block number
3341
+ */
3342
+ eip155Block?: number;
3343
+ /**
3344
+ * EIP-158 block number
3345
+ */
3346
+ eip158Block?: number;
3347
+ /**
3348
+ * Fee configuration
3349
+ */
3350
+ feeConfig?: EvmGenesisFeeConfigDto;
3351
+ /**
3352
+ * Homestead block number
3353
+ */
3354
+ homesteadBlock?: number;
3355
+ /**
3356
+ * Istanbul block number
3357
+ */
3358
+ istanbulBlock?: number;
3359
+ /**
3360
+ * London block number
3361
+ */
3362
+ londonBlock?: number;
3363
+ /**
3364
+ * Muir Glacier block number
3365
+ */
3366
+ muirGlacierBlock?: number;
3367
+ /**
3368
+ * Petersburg block number
3369
+ */
3370
+ petersburgBlock?: number;
3371
+ /**
3372
+ * Subnet EVM timestamp
3373
+ */
3374
+ subnetEVMTimestamp?: number;
3375
+ /**
3376
+ * Allow fee recipients
3377
+ */
3378
+ allowFeeRecipients?: boolean;
3379
+ /**
3380
+ * Warp configuration
3381
+ */
3382
+ warpConfig?: EvmGenesisWarpConfigDto;
3383
+ /**
3384
+ * Transaction allow list configuration
3385
+ */
3386
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3387
+ /**
3388
+ * Contract deployer allow list configuration
3389
+ */
3390
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3391
+ /**
3392
+ * Contract native minter configuration
3393
+ */
3394
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3395
+ /**
3396
+ * Fee manager configuration
3397
+ */
3398
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3399
+ /**
3400
+ * Reward manager configuration
3401
+ */
3402
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3403
+ };
3404
+
3405
+ type EvmGenesisDto = {
3406
+ /**
3407
+ * Airdrop amount
3408
+ */
3409
+ airdropAmount?: number | null;
3410
+ /**
3411
+ * Airdrop hash
3412
+ */
3413
+ airdropHash?: string;
3414
+ /**
3415
+ * Allocation of accounts and balances
3416
+ */
3417
+ alloc?: Record<string, EvmGenesisAllocDto>;
3418
+ /**
3419
+ * Base fee per gas
3420
+ */
3421
+ baseFeePerGas?: number | null;
3422
+ /**
3423
+ * Blob gas used
3424
+ */
3425
+ blobGasUsed?: string | null;
3426
+ /**
3427
+ * Coinbase address
3428
+ */
3429
+ coinbase?: string;
3430
+ /**
3431
+ * Genesis configuration
3432
+ */
3433
+ config?: EvmGenesisConfigDto;
3434
+ /**
3435
+ * Difficulty
3436
+ */
3437
+ difficulty?: string;
3438
+ /**
3439
+ * Excess blob gas
3440
+ */
3441
+ excessBlobGas?: string | null;
3442
+ /**
3443
+ * Extra data
3444
+ */
3445
+ extraData?: string;
3446
+ /**
3447
+ * Gas limit
3448
+ */
3449
+ gasLimit?: string;
3450
+ /**
3451
+ * Gas used
3452
+ */
3453
+ gasUsed?: string;
3454
+ /**
3455
+ * Mix hash
3456
+ */
3457
+ mixHash?: string;
3458
+ /**
3459
+ * Nonce
3460
+ */
3461
+ nonce?: string;
3462
+ /**
3463
+ * Block number
3464
+ */
3465
+ number?: string;
3466
+ /**
3467
+ * Parent hash
3468
+ */
3469
+ parentHash?: string;
3470
+ /**
3471
+ * Block timestamp
3472
+ */
3473
+ timestamp?: string;
3474
+ };
3475
+
3476
+ type Blockchain = {
3477
+ createBlockTimestamp: number;
3478
+ createBlockNumber: string;
3479
+ blockchainId: string;
3480
+ vmId: string;
3481
+ subnetId: string;
3482
+ blockchainName: string;
2549
3483
  /**
2550
- * Get operation
2551
- * Gets operation details for the given operation id.
2552
- * @returns OperationStatusResponse Successful response
2553
- * @throws ApiError
3484
+ * 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.
2554
3485
  */
2555
- getOperationResult({ operationId, }: {
2556
- /**
2557
- * UUID of given operation
2558
- */
2559
- operationId: string;
2560
- }): CancelablePromise<OperationStatusResponse>;
3486
+ evmChainId?: number;
2561
3487
  /**
2562
- * Create transaction export operation
2563
- * Trigger a transaction export operation with given parameters.
2564
- *
2565
- * 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.
2566
- * @returns OperationStatusResponse Successful response
2567
- * @throws ApiError
3488
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
2568
3489
  */
2569
- postTransactionExportJob({ requestBody, }: {
2570
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2571
- }): CancelablePromise<OperationStatusResponse>;
2572
- }
3490
+ genesisData?: (EvmGenesisDto | string);
3491
+ };
2573
3492
 
2574
3493
  declare enum BlockchainIds {
2575
3494
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2576
3495
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2577
3496
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2578
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2579
3497
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2580
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2581
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
3498
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2582
3499
  }
2583
3500
 
2584
3501
  type ChainAddressChainIdMap = {
@@ -2602,16 +3519,31 @@ type DelegatorsDetails = {
2602
3519
  };
2603
3520
 
2604
3521
  type StakingDistribution = {
3522
+ /**
3523
+ * AvalancheGo version for the validator node.
3524
+ */
2605
3525
  version: string;
3526
+ /**
3527
+ * The total amount staked by validators using this version.
3528
+ */
2606
3529
  amountStaked: string;
3530
+ /**
3531
+ * The number of validators using this version.
3532
+ */
2607
3533
  validatorCount: number;
2608
3534
  };
2609
3535
 
2610
3536
  type ValidatorsDetails = {
2611
3537
  validatorCount: number;
2612
3538
  totalAmountStaked: string;
3539
+ /**
3540
+ * Total potential rewards from currently active validations and delegations.
3541
+ */
2613
3542
  estimatedAnnualStakingReward: string;
2614
3543
  stakingDistributionByVersion: Array<StakingDistribution>;
3544
+ /**
3545
+ * Ratio of total active stake amount to the current supply.
3546
+ */
2615
3547
  stakingRatio: string;
2616
3548
  };
2617
3549
 
@@ -2620,15 +3552,6 @@ type GetNetworkDetailsResponse = {
2620
3552
  delegatorDetails: DelegatorsDetails;
2621
3553
  };
2622
3554
 
2623
- type Blockchain = {
2624
- createBlockTimestamp: number;
2625
- createBlockNumber: string;
2626
- blockchainId: string;
2627
- vmId: string;
2628
- subnetId: string;
2629
- blockchainName: string;
2630
- };
2631
-
2632
3555
  type ListBlockchainsResponse = {
2633
3556
  /**
2634
3557
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -2663,7 +3586,13 @@ type CompletedDelegatorDetails = {
2663
3586
  delegationFee: string;
2664
3587
  startTimestamp: number;
2665
3588
  endTimestamp: number;
3589
+ /**
3590
+ * Total rewards distributed for the successful delegation.
3591
+ */
2666
3592
  grossReward: string;
3593
+ /**
3594
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3595
+ */
2667
3596
  netReward: string;
2668
3597
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2669
3598
  };
@@ -2681,7 +3610,13 @@ type PendingDelegatorDetails = {
2681
3610
  delegationFee: string;
2682
3611
  startTimestamp: number;
2683
3612
  endTimestamp: number;
3613
+ /**
3614
+ * Estimated total rewards that will be distributed for the successful delegation.
3615
+ */
2684
3616
  estimatedGrossReward: string;
3617
+ /**
3618
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3619
+ */
2685
3620
  estimatedNetReward: string;
2686
3621
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2687
3622
  };
@@ -2702,8 +3637,63 @@ type ListDelegatorDetailsResponse = {
2702
3637
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2703
3638
  };
2704
3639
 
2705
- type BlockchainInfo = {
3640
+ type BalanceOwner = {
3641
+ addresses: Array<string>;
3642
+ threshold: number;
3643
+ };
3644
+
3645
+ type L1ValidatorDetailsFull = {
3646
+ /**
3647
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3648
+ */
3649
+ validationId: string;
3650
+ /**
3651
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3652
+ */
3653
+ validationIdHex: string;
3654
+ nodeId: string;
3655
+ subnetId: string;
3656
+ /**
3657
+ * 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
3658
+ */
3659
+ weight: number;
3660
+ /**
3661
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3662
+ */
3663
+ remainingBalance: number;
3664
+ /**
3665
+ * The timestamp of the transaction which created this L1 validator
3666
+ */
3667
+ creationTimestamp: number;
3668
+ blsCredentials: Record<string, any>;
3669
+ /**
3670
+ * The L1 validator owner's balance, returned after it's disabled or removed
3671
+ */
3672
+ remainingBalanceOwner: BalanceOwner;
3673
+ /**
3674
+ * Owner ddresses details which can disable or remove the L1 validator
3675
+ */
3676
+ deactivationOwner: BalanceOwner;
3677
+ };
3678
+
3679
+ type ListL1ValidatorsResponse = {
3680
+ /**
3681
+ * 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.
3682
+ */
3683
+ nextPageToken?: string;
3684
+ /**
3685
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3686
+ */
3687
+ validators: Array<L1ValidatorDetailsFull>;
3688
+ /**
3689
+ * Block height at which the L1 validator's remaining balance is calculated
3690
+ */
3691
+ blockHeight: string;
3692
+ };
3693
+
3694
+ type L1ValidatorManagerDetails = {
2706
3695
  blockchainId: string;
3696
+ contractAddress: string;
2707
3697
  };
2708
3698
 
2709
3699
  type SubnetOwnershipInfo = {
@@ -2744,7 +3734,19 @@ type Subnet = {
2744
3734
  * Latest subnet owner details for this Subnet.
2745
3735
  */
2746
3736
  subnetOwnershipInfo: SubnetOwnershipInfo;
2747
- blockchains: Array<BlockchainInfo>;
3737
+ /**
3738
+ * Whether the subnet is an L1 or not.
3739
+ */
3740
+ isL1: boolean;
3741
+ /**
3742
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3743
+ */
3744
+ l1ConversionTransactionHash?: string;
3745
+ /**
3746
+ * L1 validator manager details.
3747
+ */
3748
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3749
+ blockchains: Array<Blockchain>;
2748
3750
  };
2749
3751
 
2750
3752
  type ListSubnetsResponse = {
@@ -2760,6 +3762,29 @@ type BlsCredentials = {
2760
3762
  proofOfPossession: string;
2761
3763
  };
2762
3764
 
3765
+ type Geolocation = {
3766
+ /**
3767
+ * The name of the validator node.
3768
+ */
3769
+ city: string;
3770
+ /**
3771
+ * The city of the validator node.
3772
+ */
3773
+ country: string;
3774
+ /**
3775
+ * The country code of the validator node.
3776
+ */
3777
+ countryCode: string;
3778
+ /**
3779
+ * The latitude of the validator node.
3780
+ */
3781
+ latitude: number;
3782
+ /**
3783
+ * The longitude of the validator node.
3784
+ */
3785
+ longitude: number;
3786
+ };
3787
+
2763
3788
  type Rewards = {
2764
3789
  validationRewardAmount: string;
2765
3790
  delegationRewardAmount: string;
@@ -2791,6 +3816,9 @@ type ActiveValidatorDetails = {
2791
3816
  nodeId: string;
2792
3817
  subnetId: string;
2793
3818
  amountStaked: string;
3819
+ /**
3820
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3821
+ */
2794
3822
  delegationFee?: string;
2795
3823
  startTimestamp: number;
2796
3824
  endTimestamp: number;
@@ -2798,15 +3826,37 @@ type ActiveValidatorDetails = {
2798
3826
  * Present for AddPermissionlessValidatorTx
2799
3827
  */
2800
3828
  blsCredentials?: BlsCredentials;
3829
+ /**
3830
+ * The percentage of this validator's stake amount to the total active stake.
3831
+ */
2801
3832
  stakePercentage: number;
3833
+ /**
3834
+ * The number of delegators linked to the validator.
3835
+ */
2802
3836
  delegatorCount: number;
3837
+ /**
3838
+ * The total amount in nAVAX delegated to the validator.
3839
+ */
2803
3840
  amountDelegated?: string;
3841
+ /**
3842
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3843
+ */
2804
3844
  uptimePerformance: number;
2805
3845
  avalancheGoVersion?: string;
3846
+ /**
3847
+ * The amount of stake in nAVAX that can be delegated to this validator.
3848
+ */
2806
3849
  delegationCapacity?: string;
3850
+ /**
3851
+ * Estimated rewards for the validator if the validation is successful.
3852
+ */
2807
3853
  potentialRewards: Rewards;
2808
3854
  validationStatus: ActiveValidatorDetails.validationStatus;
2809
3855
  validatorHealth: ValidatorHealthDetails;
3856
+ /**
3857
+ * The geographical location of the validator node, if available.
3858
+ */
3859
+ geolocation: Geolocation | null;
2810
3860
  };
2811
3861
  declare namespace ActiveValidatorDetails {
2812
3862
  enum validationStatus {
@@ -2819,6 +3869,9 @@ type CompletedValidatorDetails = {
2819
3869
  nodeId: string;
2820
3870
  subnetId: string;
2821
3871
  amountStaked: string;
3872
+ /**
3873
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3874
+ */
2822
3875
  delegationFee?: string;
2823
3876
  startTimestamp: number;
2824
3877
  endTimestamp: number;
@@ -2842,6 +3895,9 @@ type PendingValidatorDetails = {
2842
3895
  nodeId: string;
2843
3896
  subnetId: string;
2844
3897
  amountStaked: string;
3898
+ /**
3899
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3900
+ */
2845
3901
  delegationFee?: string;
2846
3902
  startTimestamp: number;
2847
3903
  endTimestamp: number;
@@ -2862,6 +3918,9 @@ type RemovedValidatorDetails = {
2862
3918
  nodeId: string;
2863
3919
  subnetId: string;
2864
3920
  amountStaked: string;
3921
+ /**
3922
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3923
+ */
2865
3924
  delegationFee?: string;
2866
3925
  startTimestamp: number;
2867
3926
  endTimestamp: number;
@@ -2869,7 +3928,13 @@ type RemovedValidatorDetails = {
2869
3928
  * Present for AddPermissionlessValidatorTx
2870
3929
  */
2871
3930
  blsCredentials?: BlsCredentials;
3931
+ /**
3932
+ * The transaction hash that removed the permissioned subnet validator.
3933
+ */
2872
3934
  removeTxHash: string;
3935
+ /**
3936
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3937
+ */
2873
3938
  removeTimestamp: number;
2874
3939
  validationStatus: RemovedValidatorDetails.validationStatus;
2875
3940
  };
@@ -2949,7 +4014,6 @@ type XChainAssetDetails = {
2949
4014
  declare enum XChainId {
2950
4015
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2951
4016
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2952
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2953
4017
  X_CHAIN = "x-chain"
2954
4018
  }
2955
4019
 
@@ -3020,7 +4084,7 @@ declare class PrimaryNetworkService {
3020
4084
  */
3021
4085
  pageToken?: string;
3022
4086
  /**
3023
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4087
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3024
4088
  */
3025
4089
  pageSize?: number;
3026
4090
  /**
@@ -3028,6 +4092,22 @@ declare class PrimaryNetworkService {
3028
4092
  */
3029
4093
  sortOrder?: SortOrder;
3030
4094
  }): CancelablePromise<ListBlockchainsResponse>;
4095
+ /**
4096
+ * Get blockchain details by ID
4097
+ * Get details of the blockchain registered on the network.
4098
+ * @returns Blockchain Successful response
4099
+ * @throws ApiError
4100
+ */
4101
+ getBlockchainById({ blockchainId, network, }: {
4102
+ /**
4103
+ * The blockchain ID of the blockchain to retrieve.
4104
+ */
4105
+ blockchainId: string;
4106
+ /**
4107
+ * Either mainnet or testnet/fuji.
4108
+ */
4109
+ network: Network;
4110
+ }): CancelablePromise<Blockchain>;
3031
4111
  /**
3032
4112
  * List subnets
3033
4113
  * Lists all subnets registered on the network.
@@ -3044,7 +4124,7 @@ declare class PrimaryNetworkService {
3044
4124
  */
3045
4125
  pageToken?: string;
3046
4126
  /**
3047
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4127
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3048
4128
  */
3049
4129
  pageSize?: number;
3050
4130
  /**
@@ -3070,7 +4150,7 @@ declare class PrimaryNetworkService {
3070
4150
  }): CancelablePromise<Subnet>;
3071
4151
  /**
3072
4152
  * List validators
3073
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
4153
+ * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
3074
4154
  * @returns ListValidatorDetailsResponse Successful response
3075
4155
  * @throws ApiError
3076
4156
  */
@@ -3088,7 +4168,7 @@ declare class PrimaryNetworkService {
3088
4168
  */
3089
4169
  pageSize?: number;
3090
4170
  /**
3091
- * A comma separated list of node ids to filter by.
4171
+ * A comma separated list of node ids to filter by. Supports substring matching.
3092
4172
  */
3093
4173
  nodeIds?: string;
3094
4174
  /**
@@ -3210,16 +4290,47 @@ declare class PrimaryNetworkService {
3210
4290
  */
3211
4291
  nodeIds?: string;
3212
4292
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4293
+ /**
4294
+ * List L1 validators
4295
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4296
+ * @returns ListL1ValidatorsResponse Successful response
4297
+ * @throws ApiError
4298
+ */
4299
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4300
+ /**
4301
+ * Either mainnet or testnet/fuji.
4302
+ */
4303
+ network: Network;
4304
+ /**
4305
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4306
+ */
4307
+ pageToken?: string;
4308
+ /**
4309
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4310
+ */
4311
+ pageSize?: number;
4312
+ /**
4313
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4314
+ */
4315
+ l1ValidationId?: string;
4316
+ includeInactiveL1Validators?: boolean;
4317
+ /**
4318
+ * A valid node ID in format 'NodeID-HASH'.
4319
+ */
4320
+ nodeId?: string;
4321
+ /**
4322
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4323
+ */
4324
+ subnetId?: any;
4325
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3213
4326
  }
3214
4327
 
3215
4328
  declare enum BlockchainId {
3216
4329
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3217
4330
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3218
4331
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3219
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3220
4332
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3221
4333
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3222
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3223
4334
  P_CHAIN = "p-chain",
3224
4335
  X_CHAIN = "x-chain",
3225
4336
  C_CHAIN = "c-chain"
@@ -3256,12 +4367,6 @@ type CChainAtomicBalances = {
3256
4367
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3257
4368
  };
3258
4369
 
3259
- declare enum PrimaryNetwork {
3260
- MAINNET = "mainnet",
3261
- FUJI = "fuji",
3262
- DEVNET = "devnet"
3263
- }
3264
-
3265
4370
  declare enum PrimaryNetworkChainName {
3266
4371
  P_CHAIN = "p-chain",
3267
4372
  X_CHAIN = "x-chain",
@@ -3270,7 +4375,7 @@ declare enum PrimaryNetworkChainName {
3270
4375
 
3271
4376
  type PrimaryNetworkChainInfo = {
3272
4377
  chainName: PrimaryNetworkChainName;
3273
- network: PrimaryNetwork;
4378
+ network: Network;
3274
4379
  };
3275
4380
 
3276
4381
  type ListCChainAtomicBalancesResponse = {
@@ -3462,6 +4567,8 @@ type GetPrimaryNetworkBlockResponse = {
3462
4567
  txCount: number;
3463
4568
  transactions: Array<string>;
3464
4569
  blockSizeBytes: number;
4570
+ l1ValidatorsAccruedFees?: number;
4571
+ activeL1Validators?: number;
3465
4572
  currentSupply?: string;
3466
4573
  proposerDetails?: ProposerDetails;
3467
4574
  };
@@ -3475,6 +4582,8 @@ type PrimaryNetworkBlock = {
3475
4582
  txCount: number;
3476
4583
  transactions: Array<string>;
3477
4584
  blockSizeBytes: number;
4585
+ l1ValidatorsAccruedFees?: number;
4586
+ activeL1Validators?: number;
3478
4587
  currentSupply?: string;
3479
4588
  proposerDetails?: ProposerDetails;
3480
4589
  };
@@ -3517,7 +4626,7 @@ declare class PrimaryNetworkBlocksService {
3517
4626
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3518
4627
  * @throws ApiError
3519
4628
  */
3520
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4629
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3521
4630
  /**
3522
4631
  * A primary network blockchain id or alias.
3523
4632
  */
@@ -3530,6 +4639,14 @@ declare class PrimaryNetworkBlocksService {
3530
4639
  * A primary network (P or X chain) nodeId.
3531
4640
  */
3532
4641
  nodeId: string;
4642
+ /**
4643
+ * Query param for retrieving items after a specific timestamp.
4644
+ */
4645
+ startTimestamp?: number;
4646
+ /**
4647
+ * Query param for retrieving items before a specific timestamp.
4648
+ */
4649
+ endTimestamp?: number;
3533
4650
  /**
3534
4651
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3535
4652
  */
@@ -3545,7 +4662,7 @@ declare class PrimaryNetworkBlocksService {
3545
4662
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3546
4663
  * @throws ApiError
3547
4664
  */
3548
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4665
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3549
4666
  /**
3550
4667
  * A primary network blockchain id or alias.
3551
4668
  */
@@ -3554,6 +4671,14 @@ declare class PrimaryNetworkBlocksService {
3554
4671
  * Either mainnet or testnet/fuji.
3555
4672
  */
3556
4673
  network: Network;
4674
+ /**
4675
+ * Query param for retrieving items after a specific timestamp.
4676
+ */
4677
+ startTimestamp?: number;
4678
+ /**
4679
+ * Query param for retrieving items before a specific timestamp.
4680
+ */
4681
+ endTimestamp?: number;
3557
4682
  /**
3558
4683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3559
4684
  */
@@ -3795,6 +4920,10 @@ type Utxo = {
3795
4920
  * UTXO ID for this output.
3796
4921
  */
3797
4922
  utxoId: string;
4923
+ /**
4924
+ * The bytes of the UTXO
4925
+ */
4926
+ utxoBytes?: string;
3798
4927
  /**
3799
4928
  * Unix timestamp in seconds at which this output was consumed.
3800
4929
  */
@@ -3963,6 +5092,41 @@ type ListCChainAtomicTransactionsResponse = {
3963
5092
  chainInfo: PrimaryNetworkChainInfo;
3964
5093
  };
3965
5094
 
5095
+ type BlockchainInfo = {
5096
+ chainName: string;
5097
+ vmId: string;
5098
+ /**
5099
+ * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
5100
+ */
5101
+ genesisData?: (EvmGenesisDto | string);
5102
+ };
5103
+
5104
+ type L1ValidatorDetailsTransaction = {
5105
+ /**
5106
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
5107
+ */
5108
+ validationId: string;
5109
+ /**
5110
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
5111
+ */
5112
+ validationIdHex: string;
5113
+ nodeId: string;
5114
+ subnetId: string;
5115
+ /**
5116
+ * 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
5117
+ */
5118
+ weight: number;
5119
+ /**
5120
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
5121
+ */
5122
+ remainingBalance: number;
5123
+ /**
5124
+ * 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
5125
+ */
5126
+ balanceChange?: number;
5127
+ blsCredentials?: Record<string, any>;
5128
+ };
5129
+
3966
5130
  declare enum PChainTransactionType {
3967
5131
  ADD_VALIDATOR_TX = "AddValidatorTx",
3968
5132
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3979,9 +5143,17 @@ declare enum PChainTransactionType {
3979
5143
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3980
5144
  BASE_TX = "BaseTx",
3981
5145
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5146
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5147
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5148
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5149
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5150
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3982
5151
  UNKNOWN = "UNKNOWN"
3983
5152
  }
3984
5153
 
5154
+ /**
5155
+ * Indicates whether the UTXO is staked or transferable
5156
+ */
3985
5157
  declare enum UtxoType {
3986
5158
  STAKE = "STAKE",
3987
5159
  TRANSFER = "TRANSFER"
@@ -4009,6 +5181,10 @@ type PChainUtxo = {
4009
5181
  * UTXO ID for this output.
4010
5182
  */
4011
5183
  utxoId: string;
5184
+ /**
5185
+ * The bytes of the UTXO
5186
+ */
5187
+ utxoBytes?: string;
4012
5188
  /**
4013
5189
  * @deprecated
4014
5190
  */
@@ -4019,16 +5195,43 @@ type PChainUtxo = {
4019
5195
  assetId: string;
4020
5196
  blockNumber: string;
4021
5197
  blockTimestamp: number;
5198
+ /**
5199
+ * Block height in which the transaction consuming this UTXO was included
5200
+ */
4022
5201
  consumingBlockNumber?: string;
5202
+ /**
5203
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
5204
+ */
4023
5205
  consumingBlockTimestamp?: number;
5206
+ /**
5207
+ * Timestamp in seconds after which this UTXO can be consumed
5208
+ */
4024
5209
  platformLocktime?: number;
5210
+ /**
5211
+ * The index of the UTXO in the transaction
5212
+ */
4025
5213
  outputIndex: number;
4026
5214
  rewardType?: RewardType;
5215
+ /**
5216
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
5217
+ */
4027
5218
  stakeableLocktime?: number;
4028
5219
  staked?: boolean;
5220
+ /**
5221
+ * The minimum number of signatures required to spend this UTXO
5222
+ */
4029
5223
  threshold?: number;
5224
+ /**
5225
+ * The hash of the transaction that created this UTXO
5226
+ */
4030
5227
  txHash: string;
5228
+ /**
5229
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
5230
+ */
4031
5231
  utxoEndTimestamp?: number;
5232
+ /**
5233
+ * Timestamp in seconds at which the staked UTXO was locked.
5234
+ */
4032
5235
  utxoStartTimestamp?: number;
4033
5236
  utxoType: UtxoType;
4034
5237
  };
@@ -4040,12 +5243,21 @@ type PChainTransaction = {
4040
5243
  txHash: string;
4041
5244
  txType: PChainTransactionType;
4042
5245
  /**
4043
- * The block finality timestamp.
5246
+ * The block creation (proposal) timestamp in seconds
4044
5247
  */
4045
5248
  blockTimestamp: number;
5249
+ /**
5250
+ * The height of the block in which the transaction was included
5251
+ */
4046
5252
  blockNumber: string;
4047
5253
  blockHash: string;
5254
+ /**
5255
+ * The consumed UTXOs of the transaction
5256
+ */
4048
5257
  consumedUtxos: Array<PChainUtxo>;
5258
+ /**
5259
+ * The newly created UTXOs of the transaction
5260
+ */
4049
5261
  emittedUtxos: Array<PChainUtxo>;
4050
5262
  /**
4051
5263
  * Source chain for an atomic transaction.
@@ -4056,17 +5268,21 @@ type PChainTransaction = {
4056
5268
  */
4057
5269
  destinationChain?: string;
4058
5270
  /**
4059
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5271
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
4060
5272
  */
4061
5273
  value: Array<AssetAmount>;
4062
5274
  /**
4063
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5275
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
4064
5276
  */
4065
5277
  amountBurned: Array<AssetAmount>;
4066
5278
  /**
4067
5279
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4068
5280
  */
4069
5281
  amountStaked: Array<AssetAmount>;
5282
+ /**
5283
+ * 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.
5284
+ */
5285
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4070
5286
  /**
4071
5287
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4072
5288
  */
@@ -4076,11 +5292,11 @@ type PChainTransaction = {
4076
5292
  */
4077
5293
  endTimestamp?: number;
4078
5294
  /**
4079
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5295
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4080
5296
  */
4081
5297
  delegationFeePercent?: string;
4082
5298
  /**
4083
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5299
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4084
5300
  */
4085
5301
  nodeId?: string;
4086
5302
  /**
@@ -4088,14 +5304,25 @@ type PChainTransaction = {
4088
5304
  */
4089
5305
  subnetId?: string;
4090
5306
  /**
4091
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5307
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5308
+ */
5309
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5310
+ /**
5311
+ * 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
5312
+ */
5313
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5314
+ /**
5315
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5316
+ */
5317
+ estimatedReward?: string;
5318
+ /**
5319
+ * Reward transaction hash for the completed validations or delegations
4092
5320
  */
4093
- estimatedReward?: string;
4094
5321
  rewardTxHash?: string;
4095
5322
  rewardAddresses?: Array<string>;
4096
5323
  memo?: string;
4097
5324
  /**
4098
- * Present for RewardValidatorTx
5325
+ * Staking transaction corresponding to the RewardValidatorTx
4099
5326
  */
4100
5327
  stakingTxHash?: string;
4101
5328
  /**
@@ -4103,9 +5330,13 @@ type PChainTransaction = {
4103
5330
  */
4104
5331
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4105
5332
  /**
4106
- * Present for AddPermissionlessValidatorTx
5333
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4107
5334
  */
4108
5335
  blsCredentials?: BlsCredentials;
5336
+ /**
5337
+ * Details of the blockchain that was created in the CreateChainTx
5338
+ */
5339
+ blockchainInfo?: BlockchainInfo;
4109
5340
  };
4110
5341
 
4111
5342
  type ListPChainTransactionsResponse = {
@@ -4288,6 +5519,11 @@ declare enum PrimaryNetworkTxType {
4288
5519
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4289
5520
  BASE_TX = "BaseTx",
4290
5521
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5522
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5523
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5524
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5525
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5526
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4291
5527
  UNKNOWN = "UNKNOWN",
4292
5528
  CREATE_ASSET_TX = "CreateAssetTx",
4293
5529
  OPERATION_TX = "OperationTx"
@@ -4322,11 +5558,13 @@ declare class PrimaryNetworkTransactionsService {
4322
5558
  *
4323
5559
  * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
4324
5560
  *
5561
+ * 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.
5562
+ *
4325
5563
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
4326
5564
  * @returns any Successful response
4327
5565
  * @throws ApiError
4328
5566
  */
4329
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5567
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4330
5568
  /**
4331
5569
  * A primary network blockchain id or alias.
4332
5570
  */
@@ -4339,6 +5577,7 @@ declare class PrimaryNetworkTransactionsService {
4339
5577
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
4340
5578
  */
4341
5579
  addresses?: string;
5580
+ l1ValidationId?: string;
4342
5581
  /**
4343
5582
  * Query param for filtering items based on transaction types.
4344
5583
  */
@@ -4450,6 +5689,36 @@ declare class PrimaryNetworkTransactionsService {
4450
5689
  }): CancelablePromise<ListXChainTransactionsResponse>;
4451
5690
  }
4452
5691
 
5692
+ declare enum PrimaryNetworkType {
5693
+ MAINNET = "mainnet",
5694
+ FUJI = "fuji"
5695
+ }
5696
+
5697
+ type LastActivityTimestamp = {
5698
+ /**
5699
+ * Unix timestamp in seconds at which the last activity occurred.
5700
+ */
5701
+ timestamp: number;
5702
+ /**
5703
+ * Block height at which the last activity occurred.
5704
+ */
5705
+ blockNumber: string;
5706
+ /**
5707
+ * Transaction hash of the transaction that created or consumed the address' UTXOs.
5708
+ */
5709
+ txHash: string;
5710
+ /**
5711
+ * UTXO ID of the UTXO that was created or consumed.
5712
+ */
5713
+ utxoId: string;
5714
+ /**
5715
+ * Whether the last activity was a consumption of an existing UTXO.
5716
+ */
5717
+ isConsumed: boolean;
5718
+ chainName: PrimaryNetworkChainName;
5719
+ network: PrimaryNetworkType;
5720
+ };
5721
+
4453
5722
  type ListPChainUtxosResponse = {
4454
5723
  /**
4455
5724
  * 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.
@@ -4468,6 +5737,18 @@ type ListUtxosResponse = {
4468
5737
  chainInfo: PrimaryNetworkChainInfo;
4469
5738
  };
4470
5739
 
5740
+ type PrimaryNetworkAddressesBodyDto = {
5741
+ /**
5742
+ * Comma-separated list of primary network addresses
5743
+ */
5744
+ addresses: string;
5745
+ };
5746
+
5747
+ declare enum UtxosSortByOption {
5748
+ TIMESTAMP = "timestamp",
5749
+ AMOUNT = "amount"
5750
+ }
5751
+
4471
5752
  declare class PrimaryNetworkUtxOsService {
4472
5753
  readonly httpRequest: BaseHttpRequest;
4473
5754
  constructor(httpRequest: BaseHttpRequest);
@@ -4477,7 +5758,7 @@ declare class PrimaryNetworkUtxOsService {
4477
5758
  * @returns any Successful response
4478
5759
  * @throws ApiError
4479
5760
  */
4480
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5761
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
4481
5762
  /**
4482
5763
  * A primary network blockchain id or alias.
4483
5764
  */
@@ -4502,15 +5783,105 @@ declare class PrimaryNetworkUtxOsService {
4502
5783
  * Asset ID for any asset (only applicable X-Chain)
4503
5784
  */
4504
5785
  assetId?: string;
5786
+ /**
5787
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5788
+ */
5789
+ minUtxoAmount?: number;
5790
+ /**
5791
+ * Boolean filter to include spent UTXOs.
5792
+ */
5793
+ includeSpent?: boolean;
5794
+ /**
5795
+ * Which property to sort by, in conjunction with sortOrder.
5796
+ */
5797
+ sortBy?: UtxosSortByOption;
5798
+ /**
5799
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
5800
+ */
5801
+ sortOrder?: SortOrder;
5802
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5803
+ /**
5804
+ * List UTXOs v2 - Supports querying for more addresses
5805
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5806
+ * @returns any Successful response
5807
+ * @throws ApiError
5808
+ */
5809
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5810
+ /**
5811
+ * A primary network blockchain id or alias.
5812
+ */
5813
+ blockchainId: BlockchainId;
5814
+ /**
5815
+ * Either mainnet or testnet/fuji.
5816
+ */
5817
+ network: Network;
5818
+ requestBody: PrimaryNetworkAddressesBodyDto;
5819
+ /**
5820
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5821
+ */
5822
+ pageToken?: string;
5823
+ /**
5824
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5825
+ */
5826
+ pageSize?: number;
5827
+ /**
5828
+ * Asset ID for any asset (only applicable X-Chain)
5829
+ */
5830
+ assetId?: string;
5831
+ /**
5832
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5833
+ */
5834
+ minUtxoAmount?: number;
4505
5835
  /**
4506
5836
  * Boolean filter to include spent UTXOs.
4507
5837
  */
4508
5838
  includeSpent?: boolean;
5839
+ /**
5840
+ * Which property to sort by, in conjunction with sortOrder.
5841
+ */
5842
+ sortBy?: UtxosSortByOption;
4509
5843
  /**
4510
5844
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4511
5845
  */
4512
5846
  sortOrder?: SortOrder;
4513
5847
  }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5848
+ /**
5849
+ * Get last activity timestamp by addresses
5850
+ * Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains.
5851
+ * @returns any Successful response
5852
+ * @throws ApiError
5853
+ */
5854
+ getLastActivityTimestampByAddresses({ blockchainId, network, addresses, }: {
5855
+ /**
5856
+ * A primary network blockchain id or alias.
5857
+ */
5858
+ blockchainId: BlockchainId;
5859
+ /**
5860
+ * Either mainnet or testnet/fuji.
5861
+ */
5862
+ network: Network;
5863
+ /**
5864
+ * 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".
5865
+ */
5866
+ addresses?: string;
5867
+ }): CancelablePromise<LastActivityTimestamp>;
5868
+ /**
5869
+ * Get last activity timestamp by addresses v2
5870
+ * Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains. V2 route supports querying for more addresses.
5871
+ * @returns any Successful response
5872
+ * @throws ApiError
5873
+ */
5874
+ getLastActivityTimestampByAddressesV2({ blockchainId, network, requestBody, }: {
5875
+ /**
5876
+ * A primary network blockchain id or alias.
5877
+ */
5878
+ blockchainId: BlockchainId;
5879
+ /**
5880
+ * Either mainnet or testnet/fuji.
5881
+ */
5882
+ network: Network;
5883
+ requestBody: PrimaryNetworkAddressesBodyDto;
5884
+ }): CancelablePromise<LastActivityTimestamp>;
4514
5885
  }
4515
5886
 
4516
5887
  type XChainVertex = {
@@ -4614,64 +5985,35 @@ declare class PrimaryNetworkVerticesService {
4614
5985
  }): CancelablePromise<ListXChainVerticesResponse>;
4615
5986
  }
4616
5987
 
4617
- type RpcErrorDto = {
4618
- code: number;
4619
- message: string;
4620
- data?: Record<string, any>;
4621
- };
4622
-
4623
- type RpcErrorResponseDto = {
4624
- jsonrpc: string;
4625
- id?: (string | number);
4626
- error: RpcErrorDto;
4627
- };
4628
-
4629
- type RpcRequestBodyDto = {
4630
- method: string;
4631
- params?: Record<string, any>;
4632
- id?: (string | number);
4633
- jsonrpc?: string;
4634
- };
4635
-
4636
- type RpcSuccessResponseDto = {
4637
- jsonrpc: string;
4638
- id?: (string | number);
4639
- result: Record<string, any>;
4640
- };
4641
-
4642
- declare class RpcService {
4643
- readonly httpRequest: BaseHttpRequest;
4644
- constructor(httpRequest: BaseHttpRequest);
4645
- /**
4646
- * Calls JSON-RPC method
4647
- * Calls JSON-RPC method.
4648
- * @returns any Successful response
4649
- * @throws ApiError
4650
- */
4651
- rpc({ chainId, requestBody, }: {
4652
- /**
4653
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4654
- */
4655
- chainId: string;
4656
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4657
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4658
- }
4659
-
4660
5988
  type SignatureAggregationResponse = {
4661
5989
  signedMessage: string;
4662
5990
  };
4663
5991
 
4664
5992
  type SignatureAggregatorRequest = {
4665
5993
  /**
4666
- * Must be defined if justification is not defined
5994
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
4667
5995
  */
4668
5996
  message?: string;
4669
5997
  /**
4670
- * Must be defined if message is not defined
5998
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
4671
5999
  */
4672
6000
  justification?: string;
6001
+ /**
6002
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
6003
+ */
4673
6004
  signingSubnetId?: string;
6005
+ /**
6006
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
6007
+ */
4674
6008
  quorumPercentage?: number;
6009
+ /**
6010
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
6011
+ */
6012
+ quorumPercentageBuffer?: number;
6013
+ /**
6014
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
6015
+ */
6016
+ pChainHeight?: number;
4675
6017
  };
4676
6018
 
4677
6019
  declare class SignatureAggregatorService {
@@ -4683,9 +6025,29 @@ declare class SignatureAggregatorService {
4683
6025
  * @returns SignatureAggregationResponse Successful response
4684
6026
  * @throws ApiError
4685
6027
  */
4686
- aggregateSignatures({ requestBody, }: {
6028
+ aggregateSignatures({ network, requestBody, }: {
6029
+ /**
6030
+ * Either mainnet or testnet/fuji.
6031
+ */
6032
+ network: Network;
4687
6033
  requestBody: SignatureAggregatorRequest;
4688
6034
  }): CancelablePromise<SignatureAggregationResponse>;
6035
+ /**
6036
+ * Get Aggregated Signatures
6037
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
6038
+ * @returns SignatureAggregationResponse Successful response
6039
+ * @throws ApiError
6040
+ */
6041
+ getAggregatedSignatures({ network, txHash, }: {
6042
+ /**
6043
+ * Either mainnet or testnet/fuji.
6044
+ */
6045
+ network: Network;
6046
+ /**
6047
+ * A primary network (P or X chain) transaction hash.
6048
+ */
6049
+ txHash: string;
6050
+ }): CancelablePromise<SignatureAggregationResponse>;
4689
6051
  }
4690
6052
 
4691
6053
  type TeleporterDestinationTransaction = {
@@ -4819,15 +6181,17 @@ type ListTeleporterMessagesResponse = {
4819
6181
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4820
6182
  */
4821
6183
  nextPageToken?: string;
4822
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
6184
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4823
6185
  };
4824
6186
 
4825
6187
  declare class TeleporterService {
4826
6188
  readonly httpRequest: BaseHttpRequest;
4827
6189
  constructor(httpRequest: BaseHttpRequest);
4828
6190
  /**
4829
- * Get a teleporter message
4830
- * Gets a teleporter message by message ID.
6191
+ * @deprecated
6192
+ * **[Deprecated]** Gets a teleporter message by message ID.
6193
+ *
6194
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4831
6195
  * @returns any Successful response
4832
6196
  * @throws ApiError
4833
6197
  */
@@ -4838,8 +6202,10 @@ declare class TeleporterService {
4838
6202
  messageId: string;
4839
6203
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4840
6204
  /**
4841
- * List teleporter messages
4842
- * Lists teleporter messages. Ordered by timestamp in descending order.
6205
+ * @deprecated
6206
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
6207
+ *
6208
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4843
6209
  * @returns ListTeleporterMessagesResponse Successful response
4844
6210
  * @throws ApiError
4845
6211
  */
@@ -4878,8 +6244,10 @@ declare class TeleporterService {
4878
6244
  network?: Network;
4879
6245
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4880
6246
  /**
4881
- * List teleporter messages by address
4882
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
6247
+ * @deprecated
6248
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
6249
+ *
6250
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4883
6251
  * @returns ListTeleporterMessagesResponse Successful response
4884
6252
  * @throws ApiError
4885
6253
  */
@@ -4912,68 +6280,212 @@ type AddressesChangeRequest = {
4912
6280
 
4913
6281
  type AddressActivityMetadata = {
4914
6282
  /**
4915
- * Ethereum address(es) for the address_activity event type
6283
+ * Array of hexadecimal strings of the event signatures.
6284
+ */
6285
+ eventSignatures?: Array<string>;
6286
+ /**
6287
+ * Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
4916
6288
  */
4917
6289
  addresses: Array<string>;
6290
+ };
6291
+
6292
+ type EVMAddressActivityRequest = {
6293
+ eventType: EVMAddressActivityRequest.eventType;
6294
+ url: string;
6295
+ name?: string;
6296
+ description?: string;
6297
+ chainId: string;
6298
+ metadata: AddressActivityMetadata;
4918
6299
  /**
4919
- * Array of hexadecimal strings of the event signatures.
6300
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4920
6301
  */
4921
- eventSignatures?: Array<string>;
6302
+ includeInternalTxs?: boolean;
6303
+ /**
6304
+ * Whether to include logs in the webhook payload.
6305
+ */
6306
+ includeLogs?: boolean;
4922
6307
  };
6308
+ declare namespace EVMAddressActivityRequest {
6309
+ enum eventType {
6310
+ ADDRESS_ACTIVITY = "address_activity"
6311
+ }
6312
+ }
4923
6313
 
4924
- declare enum EventType {
6314
+ declare enum AddressActivityEventType {
4925
6315
  ADDRESS_ACTIVITY = "address_activity"
4926
6316
  }
4927
6317
 
4928
- type CreateWebhookRequest = {
6318
+ declare enum WebhookStatusType {
6319
+ ACTIVE = "active",
6320
+ INACTIVE = "inactive"
6321
+ }
6322
+
6323
+ type EVMAddressActivityResponse = {
6324
+ id: string;
4929
6325
  url: string;
4930
6326
  chainId: string;
4931
- eventType: EventType;
6327
+ status: WebhookStatusType;
6328
+ createdAt: number;
6329
+ name: string;
6330
+ description: string;
6331
+ eventType: AddressActivityEventType;
4932
6332
  metadata: AddressActivityMetadata;
4933
- name?: string;
4934
- description?: string;
4935
6333
  /**
4936
- * Whether to include traces in the webhook payload.
6334
+ * Whether to include traces in the webhook payload.
6335
+ */
6336
+ includeInternalTxs?: boolean;
6337
+ /**
6338
+ * Whether to include logs in the webhook payload.
6339
+ */
6340
+ includeLogs?: boolean;
6341
+ };
6342
+
6343
+ type ListWebhookAddressesResponse = {
6344
+ /**
6345
+ * 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.
6346
+ */
6347
+ nextPageToken?: string;
6348
+ addresses: Array<string>;
6349
+ totalAddresses: number;
6350
+ };
6351
+
6352
+ declare enum PrimaryNetworkAddressActivityEventType {
6353
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6354
+ }
6355
+
6356
+ /**
6357
+ * The type of key to monitor for the address activity event type.
6358
+ */
6359
+ declare enum PlatformAddressActivityKeyType {
6360
+ ADDRESSES = "addresses"
6361
+ }
6362
+
6363
+ /**
6364
+ * Array of address activity sub-event types
6365
+ */
6366
+ declare enum PrimaryNetworkAddressActivitySubEventType {
6367
+ BALANCE_CHANGE = "balance_change",
6368
+ BALANCE_THRESHOLD = "balance_threshold",
6369
+ REWARD_DISTRIBUTION = "reward_distribution"
6370
+ }
6371
+
6372
+ type PrimaryNetworkAddressActivitySubEvents = {
6373
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
6374
+ };
6375
+
6376
+ /**
6377
+ * Type of balance to monitor
6378
+ */
6379
+ declare enum CommonBalanceType {
6380
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
6381
+ UNLOCKED_STAKED = "unlockedStaked",
6382
+ LOCKED_PLATFORM = "lockedPlatform",
6383
+ LOCKED_STAKEABLE = "lockedStakeable",
6384
+ LOCKED_STAKED = "lockedStaked",
6385
+ PENDING_STAKED = "pendingStaked",
6386
+ UNLOCKED = "unlocked",
6387
+ LOCKED = "locked",
6388
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
6389
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
6390
+ }
6391
+
6392
+ type PrimaryNetworkBalanceThresholdFilter = {
6393
+ balanceType: CommonBalanceType;
6394
+ /**
6395
+ * Threshold for balance corresponding to balanceType in nAVAX
6396
+ */
6397
+ balanceThreshold: string;
6398
+ };
6399
+
6400
+ type PrimaryNetworkAddressActivityMetadata = {
6401
+ /**
6402
+ * Array of hexadecimal strings of the event signatures.
6403
+ */
6404
+ eventSignatures?: Array<string>;
6405
+ keyType: PlatformAddressActivityKeyType;
6406
+ /**
6407
+ * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
6408
+ */
6409
+ keys: Array<string>;
6410
+ /**
6411
+ * Sub-events to monitor
6412
+ */
6413
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6414
+ /**
6415
+ * Balance threshold filter
6416
+ */
6417
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6418
+ };
6419
+
6420
+ type PrimaryNetworkAddressActivityResponse = {
6421
+ id: string;
6422
+ url: string;
6423
+ chainId: string;
6424
+ status: WebhookStatusType;
6425
+ createdAt: number;
6426
+ name: string;
6427
+ description: string;
6428
+ eventType: PrimaryNetworkAddressActivityEventType;
6429
+ metadata: PrimaryNetworkAddressActivityMetadata;
6430
+ };
6431
+
6432
+ declare enum ValidatorActivityEventType {
6433
+ VALIDATOR_ACTIVITY = "validator_activity"
6434
+ }
6435
+
6436
+ /**
6437
+ * The type of key to monitor for the validator activity event type.
6438
+ */
6439
+ declare enum ValidatorActivityKeyType {
6440
+ NODE_ID = "nodeId",
6441
+ SUBNET_ID = "subnetId"
6442
+ }
6443
+
6444
+ type ValidatorActivitySubEvents = {
6445
+ /**
6446
+ * Array of validator activity sub-event types
6447
+ */
6448
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6449
+ };
6450
+
6451
+ type ValidatorActivityMetadata = {
6452
+ /**
6453
+ * Array of hexadecimal strings of the event signatures.
6454
+ */
6455
+ eventSignatures?: Array<string>;
6456
+ keyType: ValidatorActivityKeyType;
6457
+ /**
6458
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
4937
6459
  */
4938
- includeInternalTxs?: boolean;
6460
+ keys: Array<string>;
4939
6461
  /**
4940
- * Whether to include logs in the webhook payload.
6462
+ * Sub-events to monitor
4941
6463
  */
4942
- includeLogs?: boolean;
4943
- };
4944
-
4945
- type ListWebhookAddressesResponse = {
6464
+ subEvents: ValidatorActivitySubEvents;
4946
6465
  /**
4947
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6466
+ * Array of node IDs to filter the events
4948
6467
  */
4949
- nextPageToken?: string;
4950
- addresses: Array<string>;
4951
- totalAddresses: number;
4952
- };
4953
-
4954
- declare enum WebhookStatusType {
4955
- ACTIVE = "active",
4956
- INACTIVE = "inactive"
4957
- }
4958
-
4959
- type WebhookResponse = {
4960
- id: string;
4961
- eventType: EventType;
4962
- metadata: AddressActivityMetadata;
6468
+ nodeIds?: Array<string>;
4963
6469
  /**
4964
- * Whether to include traces in the webhook payload.
6470
+ * Array of subnet IDs to filter the events
4965
6471
  */
4966
- includeInternalTxs?: boolean;
6472
+ subnetIds?: Array<string>;
4967
6473
  /**
4968
- * Whether to include logs in the webhook payload.
6474
+ * L1 validator fee balance threshold in nAVAX
4969
6475
  */
4970
- includeLogs?: boolean;
6476
+ l1ValidatorFeeBalanceThreshold?: string;
6477
+ };
6478
+
6479
+ type ValidatorActivityResponse = {
6480
+ id: string;
4971
6481
  url: string;
4972
6482
  chainId: string;
4973
6483
  status: WebhookStatusType;
4974
6484
  createdAt: number;
4975
6485
  name: string;
4976
6486
  description: string;
6487
+ eventType: ValidatorActivityEventType;
6488
+ metadata: ValidatorActivityMetadata;
4977
6489
  };
4978
6490
 
4979
6491
  type ListWebhooksResponse = {
@@ -4981,8 +6493,26 @@ type ListWebhooksResponse = {
4981
6493
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4982
6494
  */
4983
6495
  nextPageToken?: string;
4984
- webhooks: Array<WebhookResponse>;
6496
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6497
+ };
6498
+
6499
+ type PrimaryNetworkAddressActivityRequest = {
6500
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6501
+ url: string;
6502
+ name?: string;
6503
+ description?: string;
6504
+ network: PrimaryNetworkType;
6505
+ chainId: string;
6506
+ /**
6507
+ * Metadata for platform address activity event
6508
+ */
6509
+ metadata: PrimaryNetworkAddressActivityMetadata;
4985
6510
  };
6511
+ declare namespace PrimaryNetworkAddressActivityRequest {
6512
+ enum eventType {
6513
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6514
+ }
6515
+ }
4986
6516
 
4987
6517
  type SharedSecretsResponse = {
4988
6518
  secret: string;
@@ -4993,10 +6523,30 @@ type UpdateWebhookRequest = {
4993
6523
  description?: string;
4994
6524
  url?: string;
4995
6525
  status?: WebhookStatusType;
6526
+ /**
6527
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6528
+ */
4996
6529
  includeInternalTxs?: boolean;
4997
6530
  includeLogs?: boolean;
4998
6531
  };
4999
6532
 
6533
+ type ValidatorActivityRequest = {
6534
+ eventType: ValidatorActivityRequest.eventType;
6535
+ url: string;
6536
+ name?: string;
6537
+ description?: string;
6538
+ network: PrimaryNetworkType;
6539
+ /**
6540
+ * Metadata for platform validator activity event
6541
+ */
6542
+ metadata: ValidatorActivityMetadata;
6543
+ };
6544
+ declare namespace ValidatorActivityRequest {
6545
+ enum eventType {
6546
+ VALIDATOR_ACTIVITY = "validator_activity"
6547
+ }
6548
+ }
6549
+
5000
6550
  declare enum WebhookStatus {
5001
6551
  ACTIVE = "active",
5002
6552
  INACTIVE = "inactive"
@@ -5008,12 +6558,12 @@ declare class WebhooksService {
5008
6558
  /**
5009
6559
  * Create a webhook
5010
6560
  * Create a new webhook.
5011
- * @returns WebhookResponse Successful response
6561
+ * @returns any Successful response
5012
6562
  * @throws ApiError
5013
6563
  */
5014
6564
  createWebhook({ requestBody, }: {
5015
- requestBody: CreateWebhookRequest;
5016
- }): CancelablePromise<WebhookResponse>;
6565
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6566
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5017
6567
  /**
5018
6568
  * List webhooks
5019
6569
  * Lists webhooks for the user.
@@ -5037,7 +6587,7 @@ declare class WebhooksService {
5037
6587
  /**
5038
6588
  * Get a webhook by ID
5039
6589
  * Retrieves a webhook by ID.
5040
- * @returns WebhookResponse Successful response
6590
+ * @returns any Successful response
5041
6591
  * @throws ApiError
5042
6592
  */
5043
6593
  getWebhook({ id, }: {
@@ -5045,11 +6595,11 @@ declare class WebhooksService {
5045
6595
  * The webhook identifier.
5046
6596
  */
5047
6597
  id: string;
5048
- }): CancelablePromise<WebhookResponse>;
6598
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5049
6599
  /**
5050
6600
  * Deactivate a webhook
5051
6601
  * Deactivates a webhook by ID.
5052
- * @returns WebhookResponse Successful response
6602
+ * @returns any Successful response
5053
6603
  * @throws ApiError
5054
6604
  */
5055
6605
  deactivateWebhook({ id, }: {
@@ -5057,11 +6607,11 @@ declare class WebhooksService {
5057
6607
  * The webhook identifier.
5058
6608
  */
5059
6609
  id: string;
5060
- }): CancelablePromise<WebhookResponse>;
6610
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5061
6611
  /**
5062
6612
  * Update a webhook
5063
6613
  * Updates an existing webhook.
5064
- * @returns WebhookResponse Successful response
6614
+ * @returns any Successful response
5065
6615
  * @throws ApiError
5066
6616
  */
5067
6617
  updateWebhook({ id, requestBody, }: {
@@ -5070,14 +6620,14 @@ declare class WebhooksService {
5070
6620
  */
5071
6621
  id: string;
5072
6622
  requestBody: UpdateWebhookRequest;
5073
- }): CancelablePromise<WebhookResponse>;
6623
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5074
6624
  /**
5075
- * Generate a shared secret
5076
- * Generates a new shared secret.
6625
+ * Generate or rotate a shared secret
6626
+ * Generates a new shared secret or rotate an existing one.
5077
6627
  * @returns SharedSecretsResponse Successful response
5078
6628
  * @throws ApiError
5079
6629
  */
5080
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6630
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5081
6631
  /**
5082
6632
  * Get a shared secret
5083
6633
  * Get a previously generated shared secret.
@@ -5086,9 +6636,9 @@ declare class WebhooksService {
5086
6636
  */
5087
6637
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5088
6638
  /**
5089
- * Add addresses to webhook
5090
- * Add addresses to webhook.
5091
- * @returns WebhookResponse Successful response
6639
+ * Add addresses to EVM activity webhook
6640
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6641
+ * @returns EVMAddressActivityResponse Successful response
5092
6642
  * @throws ApiError
5093
6643
  */
5094
6644
  addAddressesToWebhook({ id, requestBody, }: {
@@ -5097,11 +6647,11 @@ declare class WebhooksService {
5097
6647
  */
5098
6648
  id: string;
5099
6649
  requestBody: AddressesChangeRequest;
5100
- }): CancelablePromise<WebhookResponse>;
6650
+ }): CancelablePromise<EVMAddressActivityResponse>;
5101
6651
  /**
5102
- * Remove addresses from webhook
5103
- * Remove addresses from webhook.
5104
- * @returns WebhookResponse Successful response
6652
+ * Remove addresses from EVM activity webhook
6653
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6654
+ * @returns EVMAddressActivityResponse Successful response
5105
6655
  * @throws ApiError
5106
6656
  */
5107
6657
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -5110,10 +6660,10 @@ declare class WebhooksService {
5110
6660
  */
5111
6661
  id: string;
5112
6662
  requestBody: AddressesChangeRequest;
5113
- }): CancelablePromise<WebhookResponse>;
6663
+ }): CancelablePromise<EVMAddressActivityResponse>;
5114
6664
  /**
5115
- * List adresses by webhook
5116
- * List adresses by webhook.
6665
+ * List adresses by EVM activity webhooks
6666
+ * List adresses by webhook. Only valid for EVM activity webhooks.
5117
6667
  * @returns ListWebhookAddressesResponse Successful response
5118
6668
  * @throws ApiError
5119
6669
  */
@@ -5135,14 +6685,15 @@ declare class WebhooksService {
5135
6685
 
5136
6686
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
5137
6687
  declare class Glacier {
6688
+ readonly avaxSupply: AvaxSupplyService;
5138
6689
  readonly dataApiUsageMetrics: DataApiUsageMetricsService;
5139
- readonly default: DefaultService;
5140
6690
  readonly evmBalances: EvmBalancesService;
5141
6691
  readonly evmBlocks: EvmBlocksService;
5142
6692
  readonly evmChains: EvmChainsService;
5143
6693
  readonly evmContracts: EvmContractsService;
5144
6694
  readonly evmTransactions: EvmTransactionsService;
5145
6695
  readonly healthCheck: HealthCheckService;
6696
+ readonly interchainMessaging: InterchainMessagingService;
5146
6697
  readonly nfTs: NfTsService;
5147
6698
  readonly operations: OperationsService;
5148
6699
  readonly primaryNetwork: PrimaryNetworkService;
@@ -5152,7 +6703,6 @@ declare class Glacier {
5152
6703
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5153
6704
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5154
6705
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5155
- readonly rpc: RpcService;
5156
6706
  readonly signatureAggregator: SignatureAggregatorService;
5157
6707
  readonly teleporter: TeleporterService;
5158
6708
  readonly webhooks: WebhooksService;
@@ -5177,6 +6727,17 @@ declare class ApiError extends Error {
5177
6727
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5178
6728
  }
5179
6729
 
6730
+ type AccessListData = {
6731
+ /**
6732
+ * Access Address
6733
+ */
6734
+ accessAddresses: string;
6735
+ /**
6736
+ * Storage keys
6737
+ */
6738
+ storageKeys: Array<string>;
6739
+ };
6740
+
5180
6741
  type BadGateway = {
5181
6742
  /**
5182
6743
  * The error message describing the reason for the exception
@@ -5211,6 +6772,76 @@ type DataListChainsResponse = {
5211
6772
  chains: Array<ChainInfo>;
5212
6773
  };
5213
6774
 
6775
+ type ERCToken = {
6776
+ /**
6777
+ * Token contract address
6778
+ */
6779
+ address: string;
6780
+ /**
6781
+ * Token name
6782
+ */
6783
+ name: string;
6784
+ /**
6785
+ * Token symbol
6786
+ */
6787
+ symbol: string;
6788
+ /**
6789
+ * Token decimals
6790
+ */
6791
+ decimals: number;
6792
+ /**
6793
+ * Value including decimals
6794
+ */
6795
+ valueWithDecimals: string;
6796
+ };
6797
+
6798
+ type ERCTransfer = {
6799
+ /**
6800
+ * Transaction hash
6801
+ */
6802
+ transactionHash: string;
6803
+ /**
6804
+ * Transfer type
6805
+ */
6806
+ type: string;
6807
+ /**
6808
+ * Sender address
6809
+ */
6810
+ from: string;
6811
+ /**
6812
+ * Recipient address
6813
+ */
6814
+ to: string;
6815
+ /**
6816
+ * Amount transferred
6817
+ */
6818
+ value: string;
6819
+ /**
6820
+ * Token Id
6821
+ */
6822
+ tokenId?: string;
6823
+ /**
6824
+ * Block timestamp
6825
+ */
6826
+ blockTimestamp: number;
6827
+ /**
6828
+ * Log index
6829
+ */
6830
+ logIndex: number;
6831
+ /**
6832
+ * erc20 Token details
6833
+ */
6834
+ erc20Token?: ERCToken;
6835
+ /**
6836
+ * erc721 Token details
6837
+ */
6838
+ erc721Token?: ERCToken;
6839
+ /**
6840
+ * erc1155 Token details
6841
+ */
6842
+ erc1155Token?: ERCToken;
6843
+ };
6844
+
5214
6845
  type Forbidden = {
5215
6846
  /**
5216
6847
  * The error message describing the reason for the exception
@@ -5241,6 +6872,64 @@ type InternalServerError = {
5241
6872
  error: string;
5242
6873
  };
5243
6874
 
6875
+ type Log = {
6876
+ /**
6877
+ * Contract address
6878
+ */
6879
+ address: string;
6880
+ /**
6881
+ * First topic
6882
+ */
6883
+ topic0: string;
6884
+ /**
6885
+ * Second topic (optional)
6886
+ */
6887
+ topic1?: string;
6888
+ /**
6889
+ * Third topic (optional)
6890
+ */
6891
+ topic2?: string;
6892
+ /**
6893
+ * Fourth topic (optional)
6894
+ */
6895
+ topic3?: string;
6896
+ /**
6897
+ * Event data
6898
+ */
6899
+ data: string;
6900
+ /**
6901
+ * Transaction index
6902
+ */
6903
+ transactionIndex: number;
6904
+ /**
6905
+ * Log index
6906
+ */
6907
+ logIndex: number;
6908
+ /**
6909
+ * Indicates if the log was removed
6910
+ */
6911
+ removed: boolean;
6912
+ };
6913
+
6914
+ type NetworkTokenInfo = {
6915
+ /**
6916
+ * Token name
6917
+ */
6918
+ tokenName?: string;
6919
+ /**
6920
+ * Token symbol
6921
+ */
6922
+ tokenSymbol?: string;
6923
+ /**
6924
+ * Token decimals
6925
+ */
6926
+ tokenDecimals?: number;
6927
+ /**
6928
+ * Value including decimals
6929
+ */
6930
+ valueWithDecimals?: string;
6931
+ };
6932
+
5244
6933
  type NextPageToken = {
5245
6934
  /**
5246
6935
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -5293,6 +6982,163 @@ type TooManyRequests = {
5293
6982
  error: string;
5294
6983
  };
5295
6984
 
6985
+ type WebhookInternalTransaction = {
6986
+ /**
6987
+ * Sender address
6988
+ */
6989
+ from: string;
6990
+ /**
6991
+ * Recipient address
6992
+ */
6993
+ to: string;
6994
+ /**
6995
+ * Internal transaction type
6996
+ */
6997
+ internalTxType: string;
6998
+ /**
6999
+ * Value transferred
7000
+ */
7001
+ value: string;
7002
+ /**
7003
+ * Gas used
7004
+ */
7005
+ gasUsed: string;
7006
+ /**
7007
+ * Gas limit
7008
+ */
7009
+ gasLimit: string;
7010
+ /**
7011
+ * Transaction hash
7012
+ */
7013
+ transactionHash: string;
7014
+ };
7015
+
7016
+ type Transaction = {
7017
+ /**
7018
+ * Block hash of the transaction
7019
+ */
7020
+ blockHash: string;
7021
+ /**
7022
+ * Block number of the transaction
7023
+ */
7024
+ blockNumber: string;
7025
+ /**
7026
+ * Sender address
7027
+ */
7028
+ from: string;
7029
+ /**
7030
+ * Gas limit for the transaction
7031
+ */
7032
+ gas: string;
7033
+ /**
7034
+ * Gas price used
7035
+ */
7036
+ gasPrice: string;
7037
+ /**
7038
+ * Maximum fee per gas
7039
+ */
7040
+ maxFeePerGas: string;
7041
+ /**
7042
+ * Maximum priority fee per gas
7043
+ */
7044
+ maxPriorityFeePerGas: string;
7045
+ /**
7046
+ * Transaction hash
7047
+ */
7048
+ txHash: string;
7049
+ /**
7050
+ * Transaction status
7051
+ */
7052
+ txStatus: string;
7053
+ /**
7054
+ * Input data
7055
+ */
7056
+ input: string;
7057
+ /**
7058
+ * Nonce value
7059
+ */
7060
+ nonce: string;
7061
+ /**
7062
+ * Recipient address
7063
+ */
7064
+ to: string;
7065
+ /**
7066
+ * Transaction index
7067
+ */
7068
+ transactionIndex: number;
7069
+ /**
7070
+ * Value transferred in the transaction
7071
+ */
7072
+ value: string;
7073
+ /**
7074
+ * Transaction type
7075
+ */
7076
+ type: number;
7077
+ /**
7078
+ * Chain ID of the network
7079
+ */
7080
+ chainId: string;
7081
+ /**
7082
+ * Cumulative gas used
7083
+ */
7084
+ receiptCumulativeGasUsed: string;
7085
+ /**
7086
+ * Gas used
7087
+ */
7088
+ receiptGasUsed: string;
7089
+ /**
7090
+ * Effective gas price
7091
+ */
7092
+ receiptEffectiveGasPrice: string;
7093
+ /**
7094
+ * Receipt root
7095
+ */
7096
+ receiptRoot: string;
7097
+ /**
7098
+ * Block timestamp
7099
+ */
7100
+ blockTimestamp: number;
7101
+ /**
7102
+ * Contract address (optional)
7103
+ */
7104
+ contractAddress?: string;
7105
+ /**
7106
+ * ERC20 transfers
7107
+ */
7108
+ erc20Transfers: Array<ERCTransfer>;
7109
+ /**
7110
+ * ERC721 transfers
7111
+ */
7112
+ erc721Transfers: Array<ERCTransfer>;
7113
+ /**
7114
+ * ERC1155 transfers
7115
+ */
7116
+ erc1155Transfers: Array<ERCTransfer>;
7117
+ /**
7118
+ * Internal transactions (optional)
7119
+ */
7120
+ internalTransactions?: Array<WebhookInternalTransaction>;
7121
+ /**
7122
+ * Access list (optional)
7123
+ */
7124
+ accessList?: Array<AccessListData>;
7125
+ /**
7126
+ * Network token info (optional)
7127
+ */
7128
+ networkToken?: NetworkTokenInfo;
7129
+ };
7130
+
7131
+ type TransactionEvent = {
7132
+ /**
7133
+ * Transaction details
7134
+ */
7135
+ transaction: Transaction;
7136
+ /**
7137
+ * Array of log events
7138
+ */
7139
+ logs?: Array<Log>;
7140
+ };
7141
+
5296
7142
  type Unauthorized = {
5297
7143
  /**
5298
7144
  * The error message describing the reason for the exception
@@ -5308,4 +7154,43 @@ type Unauthorized = {
5308
7154
  error: string;
5309
7155
  };
5310
7156
 
5311
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
7157
+ type WebhookAddressActivityResponse = {
7158
+ /**
7159
+ * Webhook ID
7160
+ */
7161
+ webhookId: string;
7162
+ /**
7163
+ * Event type
7164
+ */
7165
+ eventType: WebhookAddressActivityResponse.eventType;
7166
+ /**
7167
+ * Message ID
7168
+ */
7169
+ messageId: string;
7170
+ /**
7171
+ * Event details
7172
+ */
7173
+ event: TransactionEvent;
7174
+ };
7175
+ declare namespace WebhookAddressActivityResponse {
7176
+ /**
7177
+ * Event type
7178
+ */
7179
+ enum eventType {
7180
+ ADDRESS_ACTIVITY = "address_activity"
7181
+ }
7182
+ }
7183
+
7184
+ declare class FetchHttpRequest extends BaseHttpRequest {
7185
+ constructor(config: OpenAPIConfig);
7186
+ /**
7187
+ * Request method
7188
+ * @param options The request options from the service
7189
+ * @returns CancelablePromise<T>
7190
+ * @throws ApiError
7191
+ */
7192
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
7193
+ }
7194
+
7195
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, CurrencyCode, DataApiUsageMetricsService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20TokenV2, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
7196
+ export type { AccessListData, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc20TransferDetailsV2, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, LastActivityTimestamp, 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, ListTransactionDetailsResponseV2, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionDetailsV2, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };